CVE-2026-40072: apeworx web3.py Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2026-40072 is a high (CVSS 7.2) Server-Side Request Forgery (SSRF) vulnerability in apeworx web3.py. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 22.5% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 09-04-2026PublishedVulnerability first disclosed.
- 09-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NDiffers
- NVDNIST1.7LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · PypiEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
+0.08 pp
From 0.23% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundWeb3.Py
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Apeworx1 product
- web3.py≥ 6.1.0, < 7.15.0 | 6.0.0 | 6.0.0:beta10 | 6.0.0:beta11 | 6.0.0:beta3 | 6.0.0:beta4 | 6.0.0:beta5 | 6.0.0:beta6 | 6.0.0:beta7 | 6.0.0:beta8 | 6.0.0:beta9 | 8.0.0:beta1
Ethereum1 product
- web3.py≥ 6.0.0b3, < 7.15.0 | ≥ 8.0.0b1, < 8.0.0b2
PyPI1 product
- web3≥ 6.0.0b3, < 7.15.0 | ≥ 8.0.0b1, < 8.0.0b2
3 vendors · 3 products
References
6 links- github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2X Refsource CONFIRMWEBExploitMitigationVendor Advisory
- github.com/ethereum/web3.pyPACKAGE
- pypi.org/project/web3PACKAGE