CVE-2021-41084

Response Splitting from unsanitized headers in http4s

MEDIUM
4.7
CVSS Score
Published: September 21, 2021 at 05:20 PM UTC
Updated: June 17, 2026 at 04:07 AM UTC
2 products affected across 2 vendorsHTTP4SHTTP4S

Using http4s by http4s?

Get instant alerts when new vulnerabilities affect http4s - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Affected range stops below 0.21.29, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.22.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.23.4, so it looks safe — our inference, not a vendor statement
v ≤ 0.21.28v < 0.22.5v < 0.23.4v < 1.0.0-M27
Affected range stops below 0.22.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.23.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.0.0-M27, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-918CWE-74

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card