CVE-2026-121440: `wasi-http` p3: forwarded trailers aren't checked against `is_forbidden_header` hook
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jxcf-8qw5-5c33 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 fails to check forwarded trailers against the WasiHttpHooks::isforbiddenheader hook in wasi-http p3. WASIp3 guests can forward a request or response body so its trailers skip embedder-customized forbidden header filtering, undermining header restrictions the embedder intended.
— 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 - Upgrade
Upgrade
Wasmtimeto a version that resolves this vulnerability.Fixed in 48.0.7 - Upgrade
Upgrade
Wasmtimeto a version that resolves this vulnerability.Fixed in 49.0.4
Event History
Frequently Asked Questions
Which deployments are affected?
Affected deployments use wasi-http p3 with Wasmtime versions 46.0.0 before 48.0.7 or 49.0.0 before 49.0.4, and configure the WasiHttpHooks::is_forbidden_header hook to restrict headers.
What must an attacker be able to do to exploit this?
An attacker needs to run or control a WASIp3 guest that can forward a request or response body with trailers. The forwarded trailers can then bypass the embedder's customized forbidden-header filtering.
Are deployments without custom forbidden-header filtering exposed to the described bypass?
The described impact is undermining header restrictions imposed through the embedder-customized WasiHttpHooks::is_forbidden_header hook. The provided information does not identify an impact for deployments that do not use that hook for header restrictions.
Which versions address the issue?
Wasmtime 48.0.7 and later in the 48.x line, and 49.0.4 and later in the 49.x line, are outside the affected version ranges.