What’s Vulnerable › Vulnerabilities
CVE-2022-31150: CRLF injection in request headers
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-07-19 · updated 2026-06-17
- Weakness: CWE-93
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 products
- undici: before 5.8.0 — fixed in 5.8.0
How to fix
Upgrade to a fixed version: undici 5.8.0. Check the vendor advisory for mitigations.
References
- https://github.com/nodejs/undici/releases/tag/v5.8.0
- https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
- https://hackerone.com/reports/409943
- https://security.netapp.com/advisory/ntap-20220915-0002/
- https://github.com/nodejs/undici/releases/tag/v5.8.0
- https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
- https://hackerone.com/reports/409943
- https://security.netapp.com/advisory/ntap-20220915-0002/
Get alerted when CVE-2022-31150 or the next vulnerability affects your stack