{"id":"CVE-2022-31150","state":"PUBLISHED","title":"CRLF injection in request headers","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.","publishedAt":"2022-07-19T20:40:10.000Z","updatedAt":"2025-04-22T17:48:45.328Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["nodejs undici"],"affected":[{"vendor":"nodejs","product":"undici","versions":[{"version":"< v5.7.1, >= v5.8.0","status":"affected"}]}],"references":["https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc","https://hackerone.com/reports/409943","https://github.com/nodejs/undici/releases/tag/v5.8.0","https://security.netapp.com/advisory/ntap-20220915-0002/"],"weaknesses":["CWE-93"],"ingestedAt":"2026-10-29T19:50:06.617Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/31xxx/CVE-2022-31150.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-31150","state":"PUBLISHED","datePublished":"2022-07-19T20:40:10.000Z","dateUpdated":"2025-04-22T17:48:45.328Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-05-18T00:00:00.000Z"},"containers":{"cna":{"title":"CRLF injection in request headers","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nodejs","product":"undici","versions":[{"version":"< v5.7.1, >= v5.8.0","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-93","description":"CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-09-15T17:06:42.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-3cvr-822r-rqcc","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31150","STATE":"PUBLIC","TITLE":"CRLF injection in request headers"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"undici","version":{"version_data":[{"version_value":"< v5.7.1, >= v5.8.0"}]}}]},"vendor_name":"nodejs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc","refsource":"CONFIRM","url":"https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc"},{"name":"https://hackerone.com/reports/409943","refsource":"MISC","url":"https://hackerone.com/reports/409943"},{"name":"https://github.com/nodejs/undici/releases/tag/v5.8.0","refsource":"MISC","url":"https://github.com/nodejs/undici/releases/tag/v5.8.0"},{"name":"https://security.netapp.com/advisory/ntap-20220915-0002/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20220915-0002/"}]},"source":{"advisory":"GHSA-3cvr-822r-rqcc","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://hackerone.com/reports/409943","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/nodejs/undici/releases/tag/v5.8.0","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220915-0002/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:11:39.394Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:40:20.790408Z","id":"CVE-2022-31150","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T17:48:45.328Z"}}]}}}