{"id":"CVE-2023-23936","published":"2023-02-16T17:30:23Z","modified":"2025-03-10T21:10:26Z","title":"CRLF Injection in Nodejs ‘undici’ via host","vendor":"nodejs","product":"undici","tier":"tail","description":{"text":"Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect `host` HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the `headers.host` string before passing to undici.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01129,"percentile":0.66348,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/reports/1820955","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodejs/undici/releases/tag/v5.19.1","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":13.27},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"nodejs","affectedVersions":[{"vendor":"nodejs","product":"undici","versions":[">=2.0.0, < 5.19.1"]}],"affected":[{"ecosystem":"npm","package":"undici","vulnerableRanges":[">=2.0.0, <5.19.1"],"patched":["5.19.1"],"from":["GHSA-5r9g-qh6m-jxff"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-0633","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nodejs-undici-cve-2022-31150","parents":[{"from":"CVE-2022-35948","to":"CVE-2023-23936","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:undici","fromFixed":"5.8.2","toFixed":"5.19.1","daysApart":187},{"kind":"same-code","provenance":"machine","files":["lib/core/request.js"],"commits":["https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80","https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034"],"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-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},{"cve":"CVE-2023-23936","published":"2023-02-16","fixed":"5.19.1","kev":false},{"cve":"CVE-2023-24807","published":"2023-02-16","fixed":"5.19.1","kev":false},{"cve":"CVE-2023-45143","published":"2023-10-12","fixed":"5.26.2","kev":false},{"cve":"CVE-2024-24750","published":"2024-02-16","fixed":"6.6.1","kev":false}],"package":"npm:undici"}}