CVE-2022-31150 json
CRLF injection in request headers
published 2022-07-19 4 y ago modified 2026-06-17 4 mo ago also GHSA-3cvr-822r-rqcc , EUVD-2022-6216
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm undici 5.8.0
- nodejs undici 5.8.0
- node-undici Debian 14, Debian 13, Debian 12 5.8.0+dfsg1+~cs18.9.16-1
debian advisories DEBIAN-CVE-2022-31150
- nodejs16 SLE Module for Web and Scripting 15 SP3, openSUSE Leap 15.3 16.17.0-150300.7.9.1
- nodejs16 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.4 16.17.0-150400.3.6.1
- nodejs16 SLE Module for Web and Scripting 12 16.17.0-8.9.1
suse advisories SUSE-SU-2022:3251-1SUSE-SU-2022:3250-1SUSE-SU-2022:3196-1
- nodejs16 openSUSE Tumbleweed 16.17.0-2.1
opensuse advisories openSUSE-SU-2024:12285-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31150 updated cvss 6.5
nodejs16: CRLF injection in node-undici
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-ui-rhel8 Red Hat OpenShift Dev Spaces devspaces/dashboard-rhel8affected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.52% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc referenced PoC, tagged "exploit" by a source, unverified
- hackerone.com https://hackerone.com/reports/409943 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | undici | <5.8.0 |
5.8.0 |
Affected products
- nodejs undici
Classification
- Weakness
-
- CWE-93 Improper Neutralization of CRLF Sequences
References
-
github.com
/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259
web
-
github.com
/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
web, exploit, third-party-advisory
-
hackerone.com
/reports/409943
web, exploit, third-party-advisory
-
github.com
/nodejs/undici/releases/tag/v5.8.0
web, release-notes, third-party-advisory
-
security.netapp.com
/advisory/ntap-20220915-0002/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31150
advisory
-
github.com
/nodejs/undici
package
-
security.netapp.com
/advisory/ntap-20220915-0002
web
Sources
- CVE List CVE-2022-31150
- GitHub Advisory GHSA-3cvr-822r-rqcc
- NVD CVE-2022-31150
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.