{"id":"CVE-2022-31150","published":"2022-07-19T20:40:10Z","modified":"2025-04-22T17:48:45Z","title":"CRLF injection in request headers","vendor":"nodejs","product":"undici","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01515,"percentile":0.74481,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc","tags":["x_refsource_CONFIRM"]},{"url":"https://hackerone.com/reports/409943","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodejs/undici/releases/tag/v5.8.0","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220915-0002/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":14.9},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nodejs","affectedVersions":[{"vendor":"nodejs","product":"undici","versions":["< v5.7.1, >= v5.8.0"]}],"affected":[{"ecosystem":"npm","package":"undici","vulnerableRanges":["<5.8.0"],"patched":["5.8.0"],"from":["GHSA-3cvr-822r-rqcc"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-6216","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nodejs-undici-cve-2022-31150","children":[{"from":"CVE-2022-31150","to":"CVE-2022-35948","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/core/request.js"],"commits":["https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259","https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80"],"basis":"shared function","functions":["processHeader"]}]},{"from":"CVE-2022-31150","to":"CVE-2023-23936","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/core/request.js"],"commits":["https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259","https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034"],"basis":"shared function","functions":["processHeader"]}]}],"packageHistory":[{"cve":"CVE-2022-32210","published":"2022-07-14","fixed":"5.5.1","kev":false,"link":{"from":"CVE-2022-32210","to":"CVE-2022-31150","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:undici","fromFixed":"5.5.1","toFixed":"5.8.0","daysApart":5}]}},{"cve":"CVE-2022-31150","published":"2022-07-19","fixed":"5.8.0","kev":false},{"cve":"CVE-2022-31151","published":"2022-07-20","fixed":"5.8.0","kev":false},{"cve":"CVE-2022-35948","published":"2022-08-13","fixed":"5.8.2","kev":false},{"cve":"CVE-2022-35949","published":"2022-08-12","fixed":"5.8.2","kev":false}],"package":"npm:undici"}}