GHSA-5hr4-253g-cpx2 · Severity: medium · Ecosystem: pip — web3.py: SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling
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.
Conclusion & alert: CVE-2026-40072 is rated Exploit Available (50/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.05%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-15 | 0.04% | 0.05% | +0.01% |
| 2 | 2026-04-10 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 1.7 | 4.0 | LOW |
|
— | — | [email protected] |
| 7.2 | 3.1 | HIGH |
|
3.9 | 2.7 | [email protected] |
GHSA-5hr4-253g-cpx2 · Severity: medium · Ecosystem: pip — web3.py: SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| apeworx | web3.py | >= 6.1.0, < 7.15.0 | cpe:2.3:a:apeworx:web3.py:*:*:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:-:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta10:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta11:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta3:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta4:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta5:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta6:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta7:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta8:*:*:*:python:*:* |
| apeworx | web3.py | 6.0.0 | cpe:2.3:a:apeworx:web3.py:6.0.0:beta9:*:*:*:python:*:* |
| apeworx | web3.py | 8.0.0 | cpe:2.3:a:apeworx:web3.py:8.0.0:beta1:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e | Patch |
| https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2 | Exploit Mitigation Vendor Advisory |