Vulnerability DatabaseCVE-2026-136640

CVE-2026-136640: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-136640 is associated with a Server-Side Request Forgery (SSRF) bypass vulnerability in the PlaywrightBrowser component of the pydantic-ai-harness Python package. The advisory (GHSA-p2q8-3252-77c3) notes that the private-address block in PlaywrightBrowser fails to correctly classify IPv6 addresses that embed cloud metadata IPv4 addresses via NAT64 or ISATAP transition mechanisms, allowing requests to reach cloud metadata services such as the AWS/Azure metadata endpoints. Affected versions are pydantic-ai-harness >= 0.24.0 and <= 0.73.0; the issue is patched in version 0.74.0. The CVSS v3.1 base score is 3.7 (Low), and the GitHub advisory explicitly notes "No known CVE" at time of publication (GitHub Advisory).

Technical details

The root cause is improper SSRF protection (CWE-918): PlaywrightBrowser blocks private and cloud metadata addresses (e.g., 169.254.169.254) by default, but evaluates IPv6 addresses solely based on Python standard library range classifications. IPv6 addresses embedding a metadata IPv4 address under a network's NAT64 prefix (other than the well-known 64:ff9b::/96 or 64:ff9b:1::/48) or encoding private/metadata addresses as ISATAP interface identifiers are classified as global unicast and are not blocked. On networks with a NAT64 or SIIT translator using a non-standard prefix, these addresses resolve to the actual metadata service. Additionally, on Python versions before 3.11.10 and 3.12.4, 6to4 forms of metadata addresses were also bypassed. The allowed_domains allowlist does not mitigate this because sub-frames are not bounded by it (GitHub Advisory).

Impact

Successful exploitation allows an unauthenticated remote attacker who controls content opened by the agent (e.g., a web page or URL) to cause the PlaywrightBrowser to fetch cloud metadata service responses (e.g., AWS EC2 instance metadata at 169.254.169.254 or Azure's 168.63.129.16), potentially exposing instance credentials, tokens, or configuration data to the AI model. The confidentiality impact is limited (Low), with no integrity or availability impact. Exploitation is constrained to environments running on IPv6 networks with a NAT64 or SIIT translator configured with a non-standard prefix (GitHub Advisory).

Exploitability

No evidence of in-the-wild exploitation, active exploit code, or threat actor attribution has been identified for this vulnerability. The CVSS attack complexity is rated High, as exploitation requires the attacker to know the network's NAT64 prefix and the target environment must be running on a qualifying IPv6 network with a non-standard NAT64/SIIT translator. No EPSS score or CISA KEV catalog entry is associated with this advisory, and the GitHub advisory itself notes "No known CVE" (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify a target application using pydantic-ai-harness (versions 0.24.0–0.73.0) with PlaywrightBrowser and block_private_addresses=True, deployed on an IPv6 network with a NAT64 or SIIT translator using a non-standard prefix (not 64:ff9b::/96 or 64:ff9b:1::/48).
  2. Determine NAT64 prefix: Discover or infer the network's NAT64 prefix (e.g., via DNS64 queries or network reconnaissance).
  3. Craft malicious URL/content: Construct an IPv6 address that embeds the cloud metadata IPv4 address (e.g., 169.254.169.254 or 168.63.129.16) under the discovered NAT64 prefix, or encode it as an ISATAP interface identifier. Embed this address in a page or URL the agent is expected to open.
  4. Deliver payload: Supply the crafted URL or content to the agent (e.g., via an attacker-controlled web page, a sub-frame on an allowed domain, or any input the agent processes).
  5. Retrieve metadata: The browser fetches the cloud metadata endpoint; the response (potentially containing instance credentials or tokens) is returned to the AI model and may be exposed to the attacker (GitHub Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from the application host to IPv6 addresses that decode to 169.254.169.254 or 168.63.129.16 under the local NAT64 prefix; unexpected traffic to cloud metadata IP ranges via the NAT64 translator.
  • Logs: Application or browser logs showing navigation to unusual IPv6 addresses; HTTP responses from metadata service endpoints (e.g., content containing ami-id, instance-id, or Azure IMDS tokens) appearing in agent context or outputs.
  • Process: playwright browser processes initiating connections to IPv6 addresses not matching expected application domains (GitHub Advisory).

Mitigation and workarounds

Upgrade pydantic-ai-harness to version 0.74.0 or later, which decodes embedded IPv4 addresses from all standardized IPv6 transition forms (NAT64, ISATAP, 6to4) before applying the block. As interim workarounds: deny cloud metadata destinations (169.254.169.254, 168.63.129.16) at the NAT64 translator or host egress firewall, or avoid opening untrusted URLs with PlaywrightBrowser on IPv6 networks with non-standard NAT64 prefixes. Ensure Python is updated to at least 3.11.10 or 3.12.4 to address the 6to4 bypass on older versions (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-143791HIGH7.5
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026
CVE-2026-143790LOW3.7
  • Python logoPython
  • pydantic-ai
NoYesDec 04, 2026
CVE-2026-136643NONEN/A
  • Python logoPython
  • pydantic-evals
NoYesDec 04, 2026
CVE-2026-136640NONEN/A
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026
CVE-2026-136639NONEN/A
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management