# CVE-2021-41084: Response Splitting from unsanitized headers in http4s

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-21T17:20:14.000Z
- Modified: 2026-07-08T06:27:29.641Z
- Also known as: GHSA-5vcm-3xc3-w7x3
- Weaknesses: CWE-74, CWE-918
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- http4s http4s: <= 0.21.28; >= 0.22.0, < 0.22.5; >= 0.23.0, < 0.23.4; >= 1.0.0-M1, < 1.0.0-M27
- org.http4s:http4s-client_2.12 (Maven): before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- org.http4s:http4s-client_2.13 (Maven): before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- org.http4s:http4s-client_3 (Maven): before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- org.http4s:http4s-server_2.10 (Maven): up to 0.21.28
- org.http4s:http4s-server_2.11 (Maven): up to 0.21.28
- org.http4s:http4s-server_2.12 (Maven): before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- org.http4s:http4s-server_2.13 (Maven): before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- org.http4s:http4s-server_2.13.0-M5 (Maven): up to 0.21.28
- org.http4s:http4s-server_3 (Maven): from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4
- typelevel http4s: before 0.21.29; from 0.22.0 before 0.22.5; from 0.23.0 before 0.23.4; 1.0.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3> (exploit, third-party-advisory, web)
- <https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8> (patch, third-party-advisory, web)
- <https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#fields.values> (vendor-advisory, web)
- <https://owasp.org/www-community/attacks/HTTP_Response_Splitting> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41084> (advisory)
- <https://github.com/http4s/http4s> (package)

## Sources

- CVE List: [CVE-2021-41084](https://www.cve.org/CVERecord?id=CVE-2021-41084), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5vcm-3xc3-w7x3](https://github.com/advisories/GHSA-5vcm-3xc3-w7x3), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41084](https://nvd.nist.gov/vuln/detail/CVE-2021-41084), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41084 · Whole record: https://cve.day/CVE-2021-41084.json · Rebuilt by cve.day 2026-11-25T22:58:04.091Z
