WaratekVRT Sign in

CVE-2021-41084 http4s

Affected softwarehttp4s
Severity8.7 High CVSS 3.1 3 scores
Fixed in0.21.29, 0.22.5, 0.23.4
WeaknessServer-side request forgery (CWE-918)
Published21 Sep 2021
Updated17 Jun 2026

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.

CWE-74

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 1.2% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: http4s/http4s d02007d.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8 : a commit: the change itself

CVSS

8.7 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 security-advisories@github.com Secondary published
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 Primary
CVSS 2.0 4.3 none AV:N/AC:M/Au:N/C:N/I:P/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.http4s:http4s-client_2.12 0 0.21.29 unbounded
org.http4s:http4s-client_2.12 0.22.0 0.22.5 unbounded
org.http4s:http4s-client_2.12 0.23.0 0.23.4 unbounded
org.http4s:http4s-client_2.13 0 0.21.29 unbounded
org.http4s:http4s-client_2.13 0.22.0 0.22.5 unbounded
org.http4s:http4s-client_2.13 0.23.0 0.23.4 unbounded
org.http4s:http4s-client_3 0 0.21.29 unbounded
org.http4s:http4s-client_3 0.22.0 0.22.5 unbounded
org.http4s:http4s-client_3 0.23.0 0.23.4 unbounded
org.http4s:http4s-server_2.10 0 none 0.21.28
org.http4s:http4s-server_2.11 0 none 0.21.28
org.http4s:http4s-server_2.12 0 0.21.29 unbounded
org.http4s:http4s-server_2.12 0.22.0 0.22.5 unbounded
org.http4s:http4s-server_2.12 0.23.0 0.23.4 unbounded
org.http4s:http4s-server_2.13 0 0.21.29 unbounded
org.http4s:http4s-server_2.13 0.22.0 0.22.5 unbounded
org.http4s:http4s-server_2.13 0.23.0 0.23.4 unbounded
org.http4s:http4s-server_2.13.0-M5 0 none 0.21.28
org.http4s:http4s-server_3 0.22.0 0.22.5 unbounded
org.http4s:http4s-server_3 0.23.0 0.23.4 unbounded

Products and versions

10 products, 49 version entries
SourceVendorProductSchemeAffected versions
osv org.http4s http4s-client_2.12 generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
osv org.http4s http4s-client_2.13 generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
osv org.http4s http4s-client_3 generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
osv org.http4s http4s-server_2.10 generic ≤ 0.21.28
osv org.http4s http4s-server_2.11 generic ≤ 0.21.28
osv org.http4s http4s-server_2.12 generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
osv org.http4s http4s-server_2.13 generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
osv org.http4s http4s-server_2.13.0-M5 generic ≤ 0.21.28
osv org.http4s http4s-server_3 generic ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4
nvd typelevel http4s generic < 0.21.29 · ≥ 0.22.0 and < 0.22.5 · ≥ 0.23.0 and < 0.23.4 · 1.0.0:milestone1 · 1.0.0:milestone10 · 1.0.0:milestone11 · 1.0.0:milestone12 · 1.0.0:milestone13 · 1.0.0:milestone14 · 1.0.0:milestone15 · 1.0.0:milestone16 · 1.0.0:milestone17 · 1.0.0:milestone18 · 1.0.0:milestone19 · 1.0.0:milestone2 · 1.0.0:milestone20 · 1.0.0:milestone21 · 1.0.0:milestone22 · 1.0.0:milestone23 · 1.0.0:milestone24 · 1.0.0:milestone25 · 1.0.0:milestone26 · 1.0.0:milestone3 · 1.0.0:milestone4 · 1.0.0:milestone5 · 1.0.0:milestone6 · 1.0.0:milestone7 · 1.0.0:milestone8 · 1.0.0:milestone9

References

URLTags
https://github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8 commit
https://github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3 WEB
https://github.com/http4s/http4s PACKAGE
https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#fields.values WEB
https://owasp.org/www-community/attacks/HTTP_Response_Splitting WEB

Timeline

Published2021-09-21By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.