{"id":"CVE-2022-3215","published":"2022-09-28T19:32:30Z","modified":"2025-05-20T20:02:25Z","title":"NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack","vendor":"Swift Project","product":"SwiftNIO","tier":"tail","description":{"text":"NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This occurs when a HTTP/1.1 server accepts user generated input from an incoming request and reflects it into a HTTP/1.1 response header in some form. A malicious user can add newlines to their input (usually in encoded form) and \"inject\" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00679,"percentile":0.53301,"provenance":"source"},"cwes":[{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"references":[{"url":"https://github.com/apple/swift-nio/security/advisories/GHSA-7fj7-39wj-c64f","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.66},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"swift-project","affectedVersions":[{"vendor":"Swift Project","product":"SwiftNIO","versions":[">= unspecified, <= 2.41.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-20T20:02:13.389168Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/apple/swift-nio","vulnerableRanges":[">=2.41.0, <2.42.0",">=2.39.0, <2.39.1","<2.29.1"],"patched":["2.42.0","2.39.1","2.29.1"],"from":["GHSA-7fj7-39wj-c64f"],"provenance":"source"}],"summary":{"text":"The flaw is in SwiftNIO's NIOHTTP1 component, where HTTP/1.1 servers that reflect user-supplied input into response headers fail to neutralise CRLF sequences, allowing newlines to be injected into the response. An attacker who can send a crafted request over the network, without authentication or user interaction, can inject newlines (typically in encoded form) to add arbitrary headers or forge entire responses, which may be treated as replies to subsequent requests and enable effects such as cross-site scripting or cache poisoning.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:01Z"},"euvd":{"id":"EUVD-2023-1729","exploited":false,"provenance":"source"}}