{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-35948","published":"2022-08-15T11:21:38.353000Z","last_modified":"2026-06-17T04:52:35.033000Z","status":"Modified","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-74","CWE-93"],"cpes":[{"criteria":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","part":"a","vendor":"nodejs","product":"undici","version_end_excluding":"5.8.2"}],"cpes_truncated":false,"vendors":["nodejs"],"products":["nodejs/undici"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01558,"percentile":0.75565,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-f772-66g8-q5h3","ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":[{"introduced":"0","fixed":"5.8.2"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-35948/","html_en":"/en/cve/CVE-2022-35948/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35948","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35948"},"untrusted":{"vendor_name":"Nodejs","product_name":"Undici","desc_en":"undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\\r\\n\\r\\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.","affected":[{"untrusted_vendor":"nodejs","untrusted_product":"undici","versions":[]}],"references":[{"url":"https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/nodejs/undici/releases/tag/v5.8.2","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-f772-66g8-q5h3","tags":["Exploit","Third Party Advisory"]}]}}