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

Medium 6.3 Published Updated

Attackers can bypass security controls and poison caches via HTTP request smuggling in Http4s when deployed behind a reverse proxy.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59822?

CVE-2025-59822 is a medium-severity vulnerability in http4s, published on 23 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-444

Which versions are affected by CVE-2025-59822?

10 open source packages ship an affected version, including org.http4s:http4s-ember-core_2.13, org.http4s:http4s-ember-core_2.12 and org.http4s:http4s-ember-core_3. It affects 1 product.

PackageAffectedFixed in
org.http4s:http4s-ember-core_2.13 MavenAll versions0.23.31
org.http4s:http4s-ember-core_2.13 MavenAll versions0.23.31
org.http4s:http4s-ember-core_2.13 MavenFrom 1.0.0-M11.0.0-M45
org.http4s:http4s-ember-core_2.13 MavenFrom 1.0.0-M11.0.0-M45
org.http4s:http4s-ember-core_2.12 MavenAll versions0.23.31
org.http4s:http4s-ember-core_2.12 MavenAll versions0.23.31
4 more packages
org.http4s:http4s-ember-core_3 MavenAll versions0.23.31
org.http4s:http4s-ember-core_3 MavenAll versions0.23.31
org.http4s:http4s-ember-core_3 MavenFrom 1.0.0-M11.0.0-M45
org.http4s:http4s-ember-core_3 MavenFrom 1.0.0-M11.0.0-M45

Products include Typelevel Http4s.

How do I fix CVE-2025-59822?

Upgrade org.http4s:http4s-ember-core_2.13 to a fixed version for your release line: 0.23.31 or 1.0.0-M45.

Is CVE-2025-59822 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59822 exists.

Sources

Also known as GHSA-wcwh-7gfw-5wrr.

Is CVE-2025-59822 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free