CVE-2022-31150Nodejs Undici
Medium 6.5 No auth needed
Follow: this CVE · Nodejs · Nodejs Undici We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Jul 19, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-93
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
What happens
undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible to inject CRLF sequences into request headers in undici in versions less than 5.7.1. A fix was released in version 5.8.0. Sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` is a workaround for this issue.
What to do
- Apply the vendor's security update for Undici.
- 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 |
< 5.8.0 |
5.8.0 |
npm install undici@5.8.0 |
Per OSV / GitHub Advisories (GHSA-3cvr-822r-rqcc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nodejs | undici | < 5.8.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Exploit Third Party Advisory
- hackerone.com Exploit Third Party Advisory
- security.netapp.com Third Party Advisory