CVE-2023-23936Nodejs Node.js
Medium 5.4 No auth needed
Follow: this CVE · Nodejs · Nodejs Node.js We alert you by email or Slack (account required).
- Priority
- 48
- CVSS 3.1
- 5.4
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 67
- Auth required
- No
- Published
- Feb 16, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Node.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | undici |
≥ 2.0.0 < 5.19.1 |
5.19.1 |
npm install undici@5.19.1 |
Per OSV / GitHub Advisories (GHSA-5r9g-qh6m-jxff). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nodejs | node.js | ≥ 16.0.0 < 16.19.1 |
| nodejs | node.js | ≥ 18.0.0 < 18.14.1 |
| nodejs | node.js | ≥ 19.0.0 < 19.6.1 |
| nodejs | undici | ≥ 2.0.0 < 5.19.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory
- hackerone.com Exploit Third Party Advisory