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.

Severity
HIGH
CVSS v3
8.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N · source cna
Exploit chance (EPSS)
1.235%
chance of exploitation in the next 30 days
higher than 69.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-09-21Published by the CNA17:20 UTC
  2. 2021-09-22GitHub advisory published (GHSA-5vcm-3xc3-w7x3)1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-5vcm-3xc3-w7x3, affected packages:

PackageVulnerable versionsFixed in
Maven org.http4s:http4s-client_2.12before 0.21.290.21.29
Maven org.http4s:http4s-client_2.12from 0.22.0 before 0.22.50.22.5
Maven org.http4s:http4s-client_2.12from 0.23.0 before 0.23.40.23.4
Maven org.http4s:http4s-client_2.13before 0.21.290.21.29
Maven org.http4s:http4s-client_2.13from 0.22.0 before 0.22.50.22.5

15 more affected packages in the advisory.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
typelevel http4sbefore 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 listed0.21.290.22.50.23.4not listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources