{"id":"CVE-2022-31150","summary":"CRLF injection in request headers","details":"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.","aliases":["GHSA-3cvr-822r-rqcc"],"modified":"2026-04-14T04:16:15.340310Z","published":"2022-07-19T20:40:10Z","related":["SUSE-SU-2022:3196-1","SUSE-SU-2022:3250-1","SUSE-SU-2022:3251-1","openSUSE-SU-2024:12285-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31150.json","cwe_ids":["CWE-93"],"cna_assigner":"GitHub_M","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"last_affected":"\u003c v5.7.1, \u003e= v5.8.0"}]}]},"references":[{"type":"WEB","url":"https://github.com/nodejs/undici/releases/tag/v5.8.0"},{"type":"WEB","url":"https://hackerone.com/reports/409943"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31150.json"},{"type":"ADVISORY","url":"https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31150"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220915-0002/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nodejs/undici","events":[{"introduced":"0"},{"fixed":"26f60b7b6e612bb831133d7f85914963d1955011"}],"database_specific":{"source":["CPE_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"5.8.0"}],"cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*"}}],"versions":["v1.0.0","v1.0.1","v1.0.2","v1.0.3","v1.1.0","v1.2.0","v1.2.1","v1.2.2","v1.2.5","v1.2.6","v1.3.0","v1.3.1","v2.0.0","v2.0.1","v2.0.2","v2.0.3","v2.0.4","v2.0.5","v2.0.6","v2.0.7","v2.1.0","v3.0.0","v3.1.0","v3.2.0","v3.3.0","v3.3.1","v4.0.0","v4.0.0-alpha.0","v4.0.0-alpha.1","v4.0.0-alpha.2","v4.0.0-alpha.4","v4.0.0-alpha.5","v4.0.0-rc.1","v4.0.0-rc.2","v4.0.0-rc.3","v4.0.0-rc.4","v4.0.0-rc.5","v4.0.0-rc.7","v4.0.0-rc.8","v4.1.0","v4.1.1","v4.10.0","v4.10.1","v4.10.2","v4.10.3","v4.10.4","v4.11.0","v4.11.1","v4.11.2","v4.11.3","v4.12.0","v4.12.2","v4.13.0","v4.14.0","v4.14.1","v4.15.0","v4.15.1","v4.16.0","v4.2.1","v4.2.2","v4.3.0","v4.3.1","v4.4.1","v4.4.2","v4.4.3","v4.4.4","v4.4.5","v4.4.6","v4.4.7","v4.5.0","v4.5.1","v4.6.0","v4.7.0","v4.7.1","v4.7.2","v4.7.3","v4.8.0","v4.8.1","v4.8.2","v4.9.0","v4.9.1","v4.9.2","v4.9.3","v4.9.4","v4.9.5","v5.0.0","v5.1.0","v5.1.1","v5.2.0","v5.3.0","v5.4.0","v5.5.0","v5.5.1","v5.6.0","v5.6.1","v5.7.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31150.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}