CVE-2022-31150
MEDIUM 6.5CVSS 3.1undici before v5.8.0 vulnerable to CRLF injection in request headers
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.
- Published
- 19 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-93
- Also known as
- GHSA-3cvr-822r-rqcc
- Sources
- NVDJSONOSV GHSA-3cvr-822r-rqccJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodejs | undicicpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* |
< 5.8.0 | 5.8.0 |
| OSV | npm | undici | < 5.8.0 | 5.8.0 |
References
- https://github.com/nodejs/undici/releases/tag/v5.8.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc · Exploit, Third Party Advisory, WEB
- https://hackerone.com/reports/409943 · Exploit, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220915-0002/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31150 · ADVISORY
- https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259 · WEB
- https://github.com/nodejs/undici · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 19 Jul 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Jul 2022)