# CVE-2025-59822: Http4s vulnerable to HTTP Request Smuggling due to improper handling of HTTP trailer section

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-26)
- **CWE:** CWE-444
- **Aliases:** GHSA-wcwh-7gfw-5wrr
- **Published:** 2025-09-23T17:37:23.000Z
- **Modified:** 2026-10-19T16:10:00.260Z

## Who should check

- Projects that depend on Maven package org.http4s:http4s-ember-core\_2.12 (\< 0.23.31)
- Projects that depend on Maven package org.http4s:http4s-ember-core\_2.13 (\< 0.23.31)
- Projects that depend on Maven package org.http4s:http4s-ember-core\_3 (\< 0.23.31)
- Anyone running http4s \< 0.23.31; \>= 1.0.0-M1, \< 1.0.0-M45

## Description

Http4s is a Scala interface for HTTP services. In versions from 1.0.0-M1 to before 1.0.0-M45 and before 0.23.31, http4s is vulnerable to HTTP Request Smuggling due to improper handling of HTTP trailer section. This vulnerability could enable attackers to bypass front-end servers security controls, launch targeted attacks against active users, and poison web caches. A pre-requisite for exploitation involves the web application being deployed behind a reverse-proxy that forwards trailer headers. This issue has been patched in versions 1.0.0-M45 and 0.23.31.

## Affected and fixed versions

- Maven `org.http4s:http4s-ember-core_2.12`: affected \< 0.23.31; fixed 0.23.31 (osv)
- Maven `org.http4s:http4s-ember-core_2.13`: affected \< 0.23.31; fixed 0.23.31, 1.0.0-M45 (osv)
- Maven `org.http4s:http4s-ember-core_3`: affected \< 0.23.31; fixed 0.23.31, 1.0.0-M45 (osv)
- http4s: \< 0.23.31; \>= 1.0.0-M1, \< 1.0.0-M45 (cvelist)

## Mitigation

- Upgrade org.http4s:http4s-ember-core\_2.12 to 0.23.31 or later.
- Upgrade org.http4s:http4s-ember-core\_2.13 to one of 0.23.31, 1.0.0-M45 (or later in the same release line).
- Upgrade org.http4s:http4s-ember-core\_3 to one of 0.23.31, 1.0.0-M45 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-59822. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59822.md
Affected: org.http4s:http4s-ember-core_2.12 < 0.23.31; org.http4s:http4s-ember-core_2.13 < 0.23.31; org.http4s:http4s-ember-core_3 < 0.23.31
Fixed in: 0.23.31, 1.0.0-M45

Steps:
1. Search this machine and project for org.http4s:http4s-ember-core_2.12 (Maven), org.http4s:http4s-ember-core_2.13 (Maven), org.http4s:http4s-ember-core_3 (Maven), http4s: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-59822 being exploited?

There is no confirmed exploitation: CVE-2025-59822 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-59822?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-59822?

org.http4s:http4s-ember-core\_2.12 \< 0.23.31; org.http4s:http4s-ember-core\_2.13 \< 0.23.31; org.http4s:http4s-ember-core\_3 \< 0.23.31.

### Is there a fix for CVE-2025-59822?

Yes. Fixed in 0.23.31, 1.0.0-M45. Upgrade org.http4s:http4s-ember-core\_2.12 to 0.23.31 or later. Upgrade org.http4s:http4s-ember-core\_2.13 to one of 0.23.31, 1.0.0-M45 (or later in the same release line). Upgrade org.http4s:http4s-ember-core\_3 to one of 0.23.31, 1.0.0-M45 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-59822?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/http4s/http4s/security/advisories/GHSA-wcwh-7gfw-5wrr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-59822>
- patch: <https://github.com/http4s/http4s/commit/dd518f7c967e5165813b8d4a48a82b8fab852d41>
- other: <https://github.com/http4s/http4s>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-59822>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wcwh-7gfw-5wrr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-59822> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-59822>
