CVE-2026-40072
CVE-2026-40072 is a high-severity vulnerability in Apeworx Web3.py with a CVSS 3.x base score of 7.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-918.
Key facts
- Severity: High (CVSS 3.x base score 7.2)
- CVSS v4: 1.7
- EPSS exploit prediction: 0% (14th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-21000
- Weakness: CWE-918
- Affected product: Apeworx Web3.py
- Published:
- Last modified:
Description
web3.py allows you to interact with the Ethereum blockchain using Python. From 6.0.0b3 to before 7.15.0 and 8.0.0b2, web3.py implements CCIP Read / OffchainLookup (EIP-3668) by performing HTTP requests to URLs supplied by smart contracts in offchain_lookup_payload["urls"]. The implementation uses these contract-supplied URLs directly (after {sender} / {data} template substitution) without any destination validation. CCIP Read is enabled by default (global_ccip_read_enabled = True on all providers), meaning any application using web3.py's .call() method is exposed without explicit opt-in. This results in Server-Side Request Forgery (SSRF) when web3.py is used in backend services, indexers, APIs, or any environment that performs eth_call / .call() against untrusted or user-supplied contract addresses. A malicious contract can force the web3.py process to issue HTTP requests to arbitrary destinations, including internal network services and cloud metadata endpoints. This vulnerability is fixed in 7.15.0 and 8.0.0b2.
Frequently asked questions
- What is CVE-2026-40072?
- web3.py allows you to interact with the Ethereum blockchain using Python. From 6.0.0b3 to before 7.15.0 and 8.0.0b2, web3.py implements CCIP Read / OffchainLookup (EIP-3668) by performing HTTP requests to URLs supplied by smart contracts in offchain_lookup_payload["urls"]. The implementation uses these contract-supplied URLs directly (after {sender} / {data} template substitution) without any destination validation. CCIP Read is enabled by default (global_ccip_read_enabled = True on all providers), meaning any application using web3.py's .call() method is exposed without explicit opt-in. This results in Server-Side Request Forgery (SSRF) when web3.py is used in backend services, indexers, APIs, or any environment that performs eth_call / .call() against untrusted or user-supplied contract addresses. A malicious contract can force the web3.py process to issue HTTP requests to arbitrary destinations, including internal network services and cloud metadata endpoints. This vulnerability is fixed in 7.15.0 and 8.0.0b2.
- How severe is CVE-2026-40072?
- CVE-2026-40072 has a CVSS 3.x base score of 7.2, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2026-40072 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (14th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-40072?
- CVE-2026-40072 primarily affects Apeworx Web3.py. In total, 12 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2026-40072?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-40072 have an EU (EUVD) identifier?
- Yes. CVE-2026-40072 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-21000.
- When was CVE-2026-40072 published?
- CVE-2026-40072 was published on 2026-04-09 and last updated on 2026-06-17.
References
- https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e
- https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2
Affected products (12)
- cpe:2.3:a:apeworx:web3.py:*:*:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:-:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta10:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta11:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta3:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta4:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta5:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta6:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta7:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta8:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:6.0.0:beta9:*:*:*:python:*:*
- cpe:2.3:a:apeworx:web3.py:8.0.0:beta1:*:*:*:python:*:*
Other CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities
- CVE-2026-47938 — Critical (CVSS 10.0): Adobe Campaign Classic (ACC) versions 7.4.3 build 9394 and earlier are affected by a Server-Side Request Forgery (SSRF)…
- CVE-2026-35431 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Entra ID Entitlement Management allows an unauthorized attacker to…
- CVE-2026-32186 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Bing allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-33107 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Databricks allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-32871 — Critical (CVSS 10.0): FastMCP is a Pythonic way to build MCP servers and clients. Prior to version 3.2.0, the OpenAPIProvider in FastMCP…
- CVE-2026-32169 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Cloud Shell allows an unauthorized attacker to elevate privileges over a…
Browse all CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities →