CVE-2021-41084
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.
Weakness
- CWE-918: Server-Side Request Forgery
Timeline
- 2021-09-21Published by the CNA17:20 UTC
- 2021-09-22GitHub advisory published (GHSA-5vcm-3xc3-w7x3)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-5vcm-3xc3-w7x3, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.http4s:http4s-client_2.12 | before 0.21.29 | 0.21.29 |
| Maven org.http4s:http4s-client_2.12 | from 0.22.0 before 0.22.5 | 0.22.5 |
| Maven org.http4s:http4s-client_2.12 | from 0.23.0 before 0.23.4 | 0.23.4 |
| Maven org.http4s:http4s-client_2.13 | before 0.21.29 | 0.21.29 |
| Maven org.http4s:http4s-client_2.13 | from 0.22.0 before 0.22.5 | 0.22.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| typelevel http4s | before 0.21.29fixed in 0.21.29from 0.22.0 before 0.22.5fixed in 0.22.5from 0.23.0 before 0.23.4fixed in 0.23.41.0.0no fix listed | 0.21.290.22.50.23.4not listed |
References
- https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8
- https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#fields.values
- https://github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3
- https://owasp.org/www-community/attacks/HTTP_Response_Splitting
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-41084'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-41084'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-41084'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-41084'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).