CVE-2026-121439: `wasi-http` p3: Guests can set incorrect content-length for spliced response bodies
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-9prg-84vf-g5fc For more information see the GitHub-hosted security advisory.
Other sources
Wasmtime 46.0.0 before 48.0.7 and 49.0.0 before 49.0.4 contains a response splitting vulnerability in wasi-http p3 that allows guests to set unvalidated content-length headers. Malicious wasip3 guests can splice an existing body into a new response with an incorrect content-length to perform response splitting or injection attacks.
— 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 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
Which deployments are affected?
The issue affects wasi-http p3 in Wasmtime versions 46.0.0 through versions before 48.0.7, and version 49.0.0 through versions before 49.0.4. The listed software component is rust/wasmtime-wasi-http.
What must an attacker be able to do?
An attacker needs to run or supply a malicious wasip3 guest. The guest can splice an existing body into a new response and set an unvalidated, incorrect content-length header.
What is the practical impact?
Incorrect content-length values can enable HTTP response splitting or response injection attacks. The provided vector indicates network reachability, low attack complexity, and no required privileges or user interaction.
What versions remediate the issue?
Upgrade affected Wasmtime 46.x through 48.x deployments to 48.0.7 or later, or affected 49.0.0 through 49.0.3 deployments to 49.0.4 or later.