{"cve":"CVE-2026-40072","nvd":{"published":"2026-04-09T18:17:03.510","modified":"2026-10-26T22:10:00.163","status":"Analyzed","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_v4":{"vector":"CVSS: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","score":1.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2},"cwes":["CWE-918"],"references":["https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e","https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2"],"products":["apeworx:web3.py"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40072","score":0.00229,"percentile":0.13528,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-5hr4-253g-cpx2","url":"https://osv.dev/vulnerability/GHSA-5hr4-253g-cpx2","summary":"web3.py: SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling","modified":"2026-10-16T10:55:39.246095876Z","packages":[{"ecosystem":"PyPI","name":"web3","purl":"pkg:pypi/web3","ranges":[">=6.0.0b3 <7.15.0"],"fixed":["7.15.0"]},{"ecosystem":"PyPI","name":"web3","purl":"pkg:pypi/web3","ranges":[">=8.0.0b1 <8.0.0b2"],"fixed":["8.0.0b2"]}]},{"id":"PYSEC-2026-3414","url":"https://osv.dev/vulnerability/PYSEC-2026-3414","summary":"web3.py: SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling","modified":"2026-10-16T10:55:39.246095876Z","packages":[{"ecosystem":"PyPI","name":"web3","purl":"pkg:pypi/web3","ranges":[">=6.0.0b3 <7.15.0",">=8.0.0b1 <8.0.0b2"],"fixed":["7.15.0","8.0.0b2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}