Vulnerability in Node.js
CVE-2023-23936
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.
Vulnerability class: CRLF Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.011, 66.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Node.js
- Node.js Undici — versions >=2.0.0, < 5.19.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, cyb3r-w0lf/nuclei-template-collection, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff (Vendor Advisory)
- https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034 (Patch)
- https://hackerone.com/reports/1820955 (Exploit, Third Party Advisory)
- https://github.com/nodejs/undici/releases/tag/v5.19.1 (Release Notes)