# CVE-2022-31150: CRLF injection in request headers

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.52%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-07-19T20:40:10.000Z
- Modified: 2026-06-17T04:44:54.533Z
- Also known as: GHSA-3cvr-822r-rqcc
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nodejs undici: < v5.7.1, >= v5.8.0; before 5.8.0
- undici (npm): before 5.8.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <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://github.com/nodejs/undici/releases/tag/v5.8.0> (release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220915-0002/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31150> (advisory)
- <https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259> (web)
- <https://github.com/nodejs/undici> (package)
- <https://security.netapp.com/advisory/ntap-20220915-0002> (web)

## Sources

- CVE List: [CVE-2022-31150](https://www.cve.org/CVERecord?id=CVE-2022-31150), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-3cvr-822r-rqcc](https://github.com/advisories/GHSA-3cvr-822r-rqcc), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31150](https://nvd.nist.gov/vuln/detail/CVE-2022-31150), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31150 · Whole record: https://cve.day/CVE-2022-31150.json · Rebuilt by cve.day 2026-11-25T22:58:13.056Z
