{"answers":{"affected":"8 open source packages ship an affected version, including github.com/swift-server/async-http-client. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-0040 in the wild and no public exploit code.","fix":"Upgrade github.com/swift-server/async-http-client to a fixed version for your release line: 1.4.1, 1.12.1, 1.13.2 or 1.9.1.","what":"CVE-2023-0040 is a high-severity vulnerability in Swift Project Async HTTP Client, published on 18 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-0040 and fix it if it is affected.\n\nWhat it is: CVE-2023-0040 is a high-severity vulnerability in Swift Project Async HTTP Client, published on 18 Jan 2023. 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-2023-0040 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/swift-server/async-http-client (SwiftURL): affected all versions; fixed in 1.4.1\n- github.com/swift-server/async-http-client (SwiftURL): affected all versions; fixed in 1.4.1\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.10.0; fixed in 1.12.1\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.10.0; fixed in 1.12.1\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.13.0; fixed in 1.13.2\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.13.0; fixed in 1.13.2\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.5.0; fixed in 1.9.1\n- github.com/swift-server/async-http-client (SwiftURL): affected from 1.5.0; fixed in 1.9.1\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-2023-0040/ (Markdown: https://insights.sbomify.com/CVE-2023-0040/index.md)","id":"CVE-2023-0040","markdown":"https://insights.sbomify.com/CVE-2023-0040/index.md","name":"CVE-2023-0040","record":{"aliases":["GHSA-v3r5-pjpm-mwgq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Swift HTTP client","requires_auth":"none","summary":"Attackers can inject CRLF sequences into HTTP headers via untrusted data, causing request manipulation and logical errors in applications using the library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Swift","cpe":[{"product":"async-http-client","vendor":"asynchttpclient_project"}],"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-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Versions of Async HTTP Client prior to 1.13.2 are vulnerable to a form of targeted request manipulation called CRLF injection. This vulnerability was the result of insufficient validation of HTTP header field values before sending them to the network. Users are vulnerable if they pass untrusted data into HTTP header field values without prior sanitisation. Common use-cases here might be to place usernames from a database into HTTP header fields. This vulnerability allows attackers to inject new HTTP header fields, or entirely new requests, into the data stream. This can cause requests to be understood very differently by the remote server than was intended. In general, this is unlikely to result in data disclosure, but it can result in a number of logical errors and other misbehaviours.","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":"Async HTTP Client has CRLF Injection vulnerability in HTTP request headers","id":"CVE-2023-0040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"SwiftURL","product":null,"products":[],"type":"other","year":"2023"},"n_packages":8,"n_references":1,"next":{"headline":"IBM Security Guardium session fixation","id":"CVE-2023-0041"},"packages":[{"ecosystem":"SwiftURL","fixed":["1.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":null,"source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":"pkg:swift/github.com/swift-server/async-http-client","source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.12.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":null,"source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.12.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":"pkg:swift/github.com/swift-server/async-http-client","source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.13.2"],"introduced":["1.13.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":null,"source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.13.2"],"introduced":["1.13.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":"pkg:swift/github.com/swift-server/async-http-client","source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.9.1"],"introduced":["1.5.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":null,"source":"GHSA-v3r5-pjpm-mwgq"},{"ecosystem":"SwiftURL","fixed":["1.9.1"],"introduced":["1.5.0"],"last_affected":[],"package":"github.com/swift-server/async-http-client","purl":"pkg:swift/github.com/swift-server/async-http-client","source":"GHSA-v3r5-pjpm-mwgq"}],"prev":{"headline":"Duplicate. Please use CVE-2022-4060 instead.","id":"CVE-2023-0039"},"products":["Async HTTP Client"],"published":"2023-01-18","related":[{"cvss_score":7.5,"headline":"Improper Input Validation in async-http-client","id":"CVE-2017-14063","kev_date_added":null,"published":"2017-08-31"},{"cvss_score":7.4,"headline":"async-http-client: Cookie header not stripped on cross-origin redirect","id":"CVE-2026-45300","kev_date_added":null,"published":"2026-06-05"}],"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-03","vendors":["Swift Project"]},"summary":"Attackers can inject CRLF sequences into HTTP headers via untrusted data, causing request manipulation and logical errors in applications using the library.","url":"https://insights.sbomify.com/CVE-2023-0040/"}