CVE-2022-31150: CRLF injection in request headers
Vulnerability summary
CVE-2022-31150 is a medium (CVSS 6.5) vulnerability in nodejs undici. EPSS estimates a 1.52% chance of exploitation in the next 30 days, higher than 74.5% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 19-07-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
1.52%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
Increase +0.08 pp
From 1.43% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundUndici
Maturity: poc
Exploit Reference (hackerone.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- node-undici< 5.8.0+dfsg1+~cs18.9.16-1
Nodejs1 product
- undici≥ v5.8.0, < v5.7.1 | < 5.8.0
Npm1 product
- undici< 5.8.0
Ubuntu1 product
- node-undiciAll versions (No fix recorded)
4 vendors · 4 products
References
11 links- github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqccX Refsource CONFIRMREPORTWEBExploitThird Party Advisory
- github.com/nodejs/undici/releases/tag/v5.8.0X Refsource MISCREPORTWEBRelease NotesThird Party Advisory
- github.com/nodejs/undiciPACKAGE