CVE-2023-23936
MEDIUM4.6EPSS 0.34%CRLF Injection in Nodejs ‘undici’ via host
Published: 2/16/2023Modified: 4/28/2026
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 packages (5)
- Alpine/nodejsfrom 0, < 16.19.1-r0
- Bitnami/node>= 16.0.0, < 16.19.1, >= 18.0.0, < 18.14.1, >= 19.0.0, < 19.6.1
- Bitnami/node-min>= 16.0.0, < 16.19.1, >= 18.0.0, < 18.14.1, >= 19.0.0, < 19.6.1
- Debian/node-undicifrom 0, < 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1
- npm/undici>= 2.0.0, < 5.19.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-23936
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2023-23936
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-23936
- PATCHhttps://github.com/nodejs/undici
- WEBhttps://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034
- WEBhttps://github.com/nodejs/undici/releases/tag/v5.19.1
- WEBhttps://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
- WEBhttps://hackerone.com/reports/1820955