What’s Vulnerable › Vulnerabilities

CVE-2023-23936: CRLF Injection in Nodejs ‘undici’ via host

Description

Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect `host` HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the `headers.host` string before passing to undici.

Affected products

How to fix

Upgrade to a fixed version: Node.js 16.19.1, 18.14.1, 19.6.1; undici 5.19.1; Npm Undici 5.19.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-23936 or the next vulnerability affects your stack