# GHSA-GJ24-29J2-3X78: Egress allowlist bypass: Host/SNI check fails open on malformed HTTP/1 request lines

- Database: GitHub
- Severity: CVSS 5.6 (Medium)
- Published: 2026-10-09
- Modified: 2026-11-14

## Affected versions

- microsandbox (crates.io): from 0.5.3, fixed in 0.6.9
- microsandbox (npm): from 0.5.3, fixed in 0.6.9
- microsandbox (PyPI): from 0.5.3, fixed in 0.6.9
- github.com/superradcompany/microsandbox/sdk/go (Go): from 0.5.3, fixed in 0.6.9
- microsandbox-cli (crates.io): from 0.5.3, fixed in 0.6.9

## Description

### Summary
On intercepted TLS connections, microsandbox checks that the HTTP request authority matches the TLS SNI. This stops a sandbox from connecting to an allowed hostname and then addressing the request to a different backend behind it (domain fronting).

For HTTP/1, this check was skipped when the request line could not be parsed. A sandbox could send a malformed request line, for example one preceded by an empty line, that microsandbox passed through unchecked but a tolerant upstream server still accepted.

HTTP/2 was not affected.

### Impact
An attacker who can execute code inside a sandbox may be able to reach an unlisted backend through an allowed hostname, when that hostname is served by shared infrastructure that routes requests by HTTP `Host`, such as a CDN, reverse proxy, or multi-tenant platform. This bypasses hostname-based egress allow rules for intercepted HTTPS traffic.

Where a secret is configured for the allowed host, the secret could also be substituted into a request carrying a different `Host`. The sandbox does not learn the secret value and the connection still terminates at the allowed host's server, so disclosure depends on the same shared-infrastructure condition.

Destinations that do not route by `Host` are not exploitable this way. DNS pinning and the filtering of private, loopback, link-local, and metadata addresses are not affected. This is not a host escape.

### Affected configurations
The issue affects versions 0.5.3 through 0.6.8 when all of the following are true:

- TLS interception is enabled for the destination
- untrusted or attacker-controlled code can run inside the sandbox
- an allowed hostname is served by infrastructure where the connection hostname and the HTTP/1 `Host` can differ

It applies whether or not secrets are configured.

### Patches
Fixed in 0.6.9. HTTP/1 requests on intercepted connections that cannot be parsed are now blocked instead of forwarded. The fix also requires exactly one `Host` header, rejects malformed header lines, and checks an absolute-form request target against the SNI.

### Workarounds
Before upgrading, avoid allowlisting hostnames on shared infrastructure for sandboxes that run untrusted code, or disable networking for those sandboxes.

### References
- Related advisory: [GHSA-3mpp-52gc-935r](https://github.com/superradcompany/microsandbox/security/advisories/GHSA-3mpp-52gc-935r)


## Remediation

Upgrade the affected packages to 0.6.9 or later.

## References

- https://github.com/superradcompany/microsandbox/security/advisories/GHSA-gj24-29j2-3x78

Page: https://cve.now/GHSA-GJ24-29J2-3X78

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
