Vulnerability · Published Jul 19, 2022 · Assigned by GitHub_M
CVE-2022-31150CRLF injection in request headers
Medium 5.3
In plain English
A medium-severity security flaw in undici from nodejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.5%top 25.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 | DEBIAN-CVE-2022-31150 |
| Debian:13 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 | DEBIAN-CVE-2022-31150 |
| Debian:14 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 | DEBIAN-CVE-2022-31150 |
| Ubuntu:24.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2022-31150 |
| Ubuntu:25.10 | node-undici | no fix listed | UBUNTU-CVE-2022-31150 |
| Ubuntu:26.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2022-31150 |
| Ubuntu:26.10 | node-undici | no fix listed | UBUNTU-CVE-2022-31150 |
| npm | undici | 5.8.0 | GHSA-3cvr-822r-rqcc |
Affected products (as reported)
Weakness: CWE-93 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc x_refsource_CONFIRM
- https://hackerone.com/reports/409943 x_refsource_MISC
- https://github.com/nodejs/undici/releases/tag/v5.8.0 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220915-0002/ x_refsource_CONFIRM