{"answers":{"affected":"6 open source packages ship an affected version, including github.com/apple/swift-nio. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-3215 in the wild and no public exploit code.","fix":"Upgrade github.com/apple/swift-nio to a fixed version for your release line: 2.29.1, 2.39.1 or 2.42.0.","what":"CVE-2022-3215 is a high-severity vulnerability in SwiftNIO, published on 28 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-3215 and fix it if it is affected.\n\nWhat it is: CVE-2022-3215 is a high-severity vulnerability in SwiftNIO, published on 28 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-3215 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/apple/swift-nio (SwiftURL): affected all versions; fixed in 2.29.1\n- github.com/apple/swift-nio (SwiftURL): affected all versions; fixed in 2.29.1\n- github.com/apple/swift-nio (SwiftURL): affected from 2.39.0; fixed in 2.39.1\n- github.com/apple/swift-nio (SwiftURL): affected from 2.39.0; fixed in 2.39.1\n- github.com/apple/swift-nio (SwiftURL): affected from 2.41.0; fixed in 2.42.0\n- github.com/apple/swift-nio (SwiftURL): affected from 2.41.0; fixed in 2.42.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-3215/ (Markdown: https://insights.sbomify.com/CVE-2022-3215/index.md)","id":"CVE-2022-3215","markdown":"https://insights.sbomify.com/CVE-2022-3215/index.md","name":"CVE-2022-3215","record":{"aliases":["GHSA-7fj7-39wj-c64f"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass","other"],"network_reachable":"yes","non_default_config":false,"product_category":"SwiftNIO HTTP library","requires_auth":"none","summary":"Attackers can inject newlines into HTTP headers via user input, bypassing security controls and causing cache poisoning or XSS in SwiftNIO applications.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Swift","cpe":[{"product":"swiftnio","vendor":"apple"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"description":"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.","ecosystems":["SwiftURL"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SwiftNIO vulnerable to Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')","id":"CVE-2022-3215","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"SwiftURL","product":null,"products":[],"type":"other","year":"2022"},"n_packages":6,"n_references":1,"next":{"headline":"Nintendo Game Boy Color Mobile Adapter GB Tetsuji memory corruption","id":"CVE-2022-3216"},"packages":[{"ecosystem":"SwiftURL","fixed":["2.29.1"],"introduced":["0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":null,"source":"GHSA-7fj7-39wj-c64f"},{"ecosystem":"SwiftURL","fixed":["2.29.1"],"introduced":["0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":"pkg:swift/github.com/apple/swift-nio","source":"GHSA-7fj7-39wj-c64f"},{"ecosystem":"SwiftURL","fixed":["2.39.1"],"introduced":["2.39.0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":null,"source":"GHSA-7fj7-39wj-c64f"},{"ecosystem":"SwiftURL","fixed":["2.39.1"],"introduced":["2.39.0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":"pkg:swift/github.com/apple/swift-nio","source":"GHSA-7fj7-39wj-c64f"},{"ecosystem":"SwiftURL","fixed":["2.42.0"],"introduced":["2.41.0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":null,"source":"GHSA-7fj7-39wj-c64f"},{"ecosystem":"SwiftURL","fixed":["2.42.0"],"introduced":["2.41.0"],"last_affected":[],"package":"github.com/apple/swift-nio","purl":"pkg:swift/github.com/apple/swift-nio","source":"GHSA-7fj7-39wj-c64f"}],"prev":{"headline":"Delta Electronics DIAEnergy Use of Hard-coded Credentials","id":"CVE-2022-3214"},"products":["SwiftNIO"],"published":"2022-09-28","related":[{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2018-4281","kev_date_added":null,"published":"2019-01-11"},{"cvss_score":5.3,"headline":"Denial of service in swift-nio","id":"CVE-2026-43678","kev_date_added":null,"published":"2026-08-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-20","vendors":["Swift Project"]},"summary":"Attackers can inject newlines into HTTP headers via user input, bypassing security controls and causing cache poisoning or XSS in SwiftNIO applications.","url":"https://insights.sbomify.com/CVE-2022-3215/"}