IPv4-mapped IPv6 addresses bypass DNS rebind protection
Description
Before v0.6.3, DNS rebind protection checked AAAA answers against native IPv6 private ranges but did not check the embedded IPv4 address in an IPv4-mapped IPv6 answer. An answer such as ::ffff:169.254.169.254 could pass the filter and enter the resolved-hostname pin cache.
Impact
In an environment where IPv4-mapped IPv6 destinations are connectable, a workload running inside a network-enabled sandbox could reach a restricted private, loopback, link-local, or metadata IPv4 endpoint through its mapped address. The same DNS answer could satisfy the resolved-hostname pin used by domain-scoped secret substitution. Secret substitution also depends on the configured secret policy and hostname checks; the report did not demonstrate secret disclosure in a live sandbox.
Affected versions
The affected network code shipped in v0.4.0 through v0.6.2 of the Rust SDK, CLI, Python SDK, and Node SDK, and in v0.5.0 through v0.6.2 of the Go SDK. All listed packages are fixed in v0.6.3.
Fix
PR #1083 checks the embedded IPv4 address during DNS rebind filtering and normalizes mapped addresses for network policy classification, CIDR matching, and resolved-hostname pin insertion and lookup. It adds regression tests for mapped private and metadata addresses. The fix shipped in v0.6.3 on July 4, 2026.
Credit
Reported by Leroy H. Mason (@LHMisme420).
Workarounds
Before upgrading, disable networking for untrusted workloads or avoid relying on DNS rebind protection for network isolation.
Remediation
Upgrade the affected SDK, CLI, and network packages to 0.6.3 or later.