CVE-2021-41084Response Splitting from unsanitized headers in http4s
- 8.7HighCVSS base score
- 1.2%Exploitation in 30 daysEPSS · top 30% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 6 days later
· 6 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.2% · top 30% of all CVEs (19 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.7.
Affected products
Affected packages
Affected packages9
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.http4s:http4s-client_2.12GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-client_2.13GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-client_3GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.10GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.11GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.12GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.13GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.13.0-M5GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- Mavenorg.http4s:http4s-server_3GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
References
References4
- https://github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8 (opens in a new tab)x_refsource_MISCx_transferred
- https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#fields.values (opens in a new tab)x_refsource_MISCx_transferred
- https://owasp.org/www-community/attacks/HTTP_Response_Splitting (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1987 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-5vcm-3xc3-w7x3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-41084)Record last updated .