{"answers":{"affected":"40 open source packages ship an affected version, including org.http4s:http4s-client_2.12, org.http4s:http4s-client_2.13 and org.http4s:http4s-client_3. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41084 in the wild and no public exploit code.","fix":"Upgrade org.http4s:http4s-client_2.12 to a fixed version for your release line: 0.21.29, 0.22.5 or 0.23.4.","what":"CVE-2021-41084 is a high-severity vulnerability in http4s, published on 21 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41084 and fix it if it is affected.\n\nWhat it is: CVE-2021-41084 is a high-severity vulnerability in http4s, published on 21 Sep 2021. 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-2021-41084 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.http4s:http4s-client_2.12 (Maven): affected all versions; fixed in 0.21.29\n- org.http4s:http4s-client_2.12 (Maven): affected all versions; fixed in 0.21.29\n- org.http4s:http4s-client_2.12 (Maven): affected from 0.22.0; fixed in 0.22.5\n- org.http4s:http4s-client_2.12 (Maven): affected from 0.22.0; fixed in 0.22.5\n- org.http4s:http4s-client_2.12 (Maven): affected from 0.23.0; fixed in 0.23.4\n- org.http4s:http4s-client_2.12 (Maven): affected from 0.23.0; fixed in 0.23.4\n- org.http4s:http4s-client_2.13 (Maven): affected all versions; fixed in 0.21.29\n- org.http4s:http4s-client_2.13 (Maven): affected all versions; fixed in 0.21.29\n- org.http4s:http4s-client_2.13 (Maven): affected from 0.22.0; fixed in 0.22.5\n- org.http4s:http4s-client_2.13 (Maven): affected from 0.22.0; fixed in 0.22.5\n- org.http4s:http4s-client_2.13 (Maven): affected from 0.23.0; fixed in 0.23.4\n- org.http4s:http4s-client_2.13 (Maven): affected from 0.23.0; fixed in 0.23.4\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-2021-41084/ (Markdown: https://insights.sbomify.com/CVE-2021-41084/index.md)","id":"CVE-2021-41084","markdown":"https://insights.sbomify.com/CVE-2021-41084/index.md","name":"CVE-2021-41084","record":{"aliases":["GHSA-5vcm-3xc3-w7x3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Scala HTTP library","requires_auth":"none","summary":"Attackers can perform response splitting by injecting unsanitized user input into HTTP headers or status fields in http4s applications.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"http4s","vendor":"typelevel"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/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-918","name":"Server-Side Request Forgery"}],"description":"http4s is an open source scala interface for HTTP. In affected versions http4s is vulnerable to response-splitting or request-splitting attacks when untrusted user input is used to create any of the following fields: Header names (`Header.name`å), Header values (`Header.value`), Status reason phrases (`Status.reason`), URI paths (`Uri.Path`), URI authority registered names (`URI.RegName`) (through 0.21). This issue has been resolved in versions 0.21.30, 0.22.5, 0.23.4, and 1.0.0-M27 perform the following. As a matter of practice http4s services and client applications should sanitize any user input in the aforementioned fields before returning a request or response to the backend. The carriage return, newline, and null characters are the most threatening.","ecosystems":["Maven"],"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":"Response Splitting from unsanitized headers in http4s","id":"CVE-2021-41084","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"other","year":"2021"},"n_packages":40,"n_references":4,"next":{"headline":"Clipboard-based XSS in jsuites","id":"CVE-2021-41086"},"packages":[{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.10","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.10","purl":"pkg:maven/org.http4s/http4s-server_2.10","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.11","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.11","purl":"pkg:maven/org.http4s/http4s-server_2.11","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.21.29"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":"pkg:maven/org.http4s/http4s-server_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":"pkg:maven/org.http4s/http4s-server_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.13","purl":"pkg:maven/org.http4s/http4s-server_2.13","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.13.0-M5","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.21.28"],"package":"org.http4s:http4s-server_2.13.0-M5","purl":"pkg:maven/org.http4s/http4s-server_2.13.0-M5","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_3","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.22.5"],"introduced":["0.22.0"],"last_affected":[],"package":"org.http4s:http4s-server_3","purl":"pkg:maven/org.http4s/http4s-server_3","source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_3","purl":null,"source":"GHSA-5vcm-3xc3-w7x3"},{"ecosystem":"Maven","fixed":["0.23.4"],"introduced":["0.23.0"],"last_affected":[],"package":"org.http4s:http4s-server_3","purl":"pkg:maven/org.http4s/http4s-server_3","source":"GHSA-5vcm-3xc3-w7x3"}],"prev":{"headline":"CSRF Vulnerability in dada-mail 11.15.1 and below","id":"CVE-2021-41083"},"products":["http4s"],"published":"2021-09-21","related":[{"cvss_score":9.1,"headline":"Default CORS config allows any origin with credentials","id":"CVE-2021-39185","kev_date_added":null,"published":"2021-09-01"},{"cvss_score":7.6,"headline":"Local file inclusion vulnerability in http4s","id":"CVE-2020-5280","kev_date_added":null,"published":"2020-03-25"},{"cvss_score":7.5,"headline":"Http4s has fatal error parsing User-Agent and Server headers","id":"CVE-2023-22465","kev_date_added":null,"published":"2023-01-04"},{"cvss_score":7.5,"headline":"Unbounded connection acceptance in http4s-blaze-server","id":"CVE-2021-21294","kev_date_added":null,"published":"2021-02-02"},{"cvss_score":6.3,"headline":"Http4s vulnerable to HTTP Request Smuggling due to improper handling of HTTP trailer section","id":"CVE-2025-59822","kev_date_added":null,"published":"2025-09-23"},{"cvss_score":5.8,"headline":"StaticFile.fromUrl can leak presence of a directory","id":"CVE-2021-32643","kev_date_added":null,"published":"2021-05-27"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["http4s"]},"summary":"Attackers can perform response splitting by injecting unsanitized user input into HTTP headers or status fields in http4s applications.","url":"https://insights.sbomify.com/CVE-2021-41084/"}