CVE-2026-121441: `wasi-http`: Guests can add conflicting content lengths to messages
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-r8xh-cgf7-392j For more information see the GitHub-hosted security advisory.
Other sources
Wasmtime before 36.0.19, 37.0.0 before 48.0.7, and 49.0.0 before 49.0.4 contains a request smuggling vulnerability in wasi-http that allows guests to set multiple conflicting content-length headers. Malicious guests can make the host send HTTP requests with conflicting content-length values to smuggle requests through servers or intermediaries that do not reject them.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/wasmtime-wasi-httpto a version that resolves this vulnerability.Fixed in 36.0.19 - Upgrade
Upgrade
rust/wasmtime-wasi-httpto a version that resolves this vulnerability.Fixed in 48.0.7 - Upgrade
Upgrade
rust/wasmtime-wasi-httpto a version that resolves this vulnerability.Fixed in 49.0.4
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments using the wasi-http component of Wasmtime are exposed if they run a vulnerable version and allow guest code to make HTTP requests through the host. The practical risk is from malicious guests that can influence outbound HTTP requests.
What must an attacker be able to do?
An attacker needs to run or control a wasi-http guest that can set HTTP request headers. Exploitation depends on sending multiple conflicting Content-Length headers and on a receiving server or intermediary that does not reject them.
Which versions need to be updated?
Affected versions are Wasmtime before 36.0.19, the 37.0.0 through before-48.0.7 line, and 49.0.0 through before-49.0.4. Update to 36.0.19, 48.0.7, or 49.0.4 or later in the applicable release line.
What can be done before patching?
Do not run untrusted or malicious-capable guests with access to wasi-http. Where possible, ensure the HTTP servers and intermediaries receiving guest-originated requests reject requests containing conflicting Content-Length values.