CVE-2023-23936: Undici is an HTTP/1.1 client for Node.js.
Medium CVSS 5.4
- CVE id
- CVE-2023-23936
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Node.js Runtimes and servers |
>= 16.0.0, < 16.19.1 >= 18.0.0, < 18.14.1 >= 19.0.0, < 19.6.1 |
16.19.1, 18.14.1, 19.6.1 |
How to fix it
Upgrade Node.js to the fixed release of the line you run: 16.19.1, 18.14.1, 19.6.1.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-23936 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-23936
- Web: https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034
- Web: https://github.com/nodejs/undici/releases/tag/v5.19.1
- Web: https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
- Web: https://hackerone.com/reports/1820955
- Web: https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034
- Web: https://github.com/nodejs/undici/releases/tag/v5.19.1
- Web: https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
- Web: https://hackerone.com/reports/1820955
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.