{"id":"CVE-2026-40072","published":"2026-04-09T17:41:14Z","modified":"2026-04-09T19:37:07Z","title":"web3.py affected by SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling","vendor":"ethereum","product":"web3.py","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.7,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00237,"percentile":0.15084,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e","tags":["x_refsource_MISC"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":3.02},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":1.19}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-05","earliestUrl":"https://github.com/u1tr0nex/cve-2026-40072-ssrf-lab","repos":[{"name":"u1tr0nex/cve-2026-40072-ssrf-lab","url":"https://github.com/u1tr0nex/cve-2026-40072-ssrf-lab","stars":0,"created":"2026-06-05"}]},"first":{"date":"2026-06-05","source":"PoC-in-GitHub","url":"https://github.com/u1tr0nex/cve-2026-40072-ssrf-lab"},"provenance":"source"},"vendorSlug":"ethereum","affectedVersions":[{"vendor":"ethereum","product":"web3.py","versions":[">= 6.0.0b3, < 7.15.0",">= 8.0.0b1, < 8.0.0b2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-09T19:36:55.666029Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"web3","vulnerableRanges":[">=6.0.0b3, <7.15.0",">=8.0.0b1, <8.0.0b2"],"patched":["7.15.0","8.0.0b2"],"from":["GHSA-5hr4-253g-cpx2","PYSEC-2026-3414"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-21000","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ethereum-web3-py-cve-2026-40072","children":[{"from":"CVE-2026-40072","to":"CVE-2026-111171","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-5hr4-253g-cpx2","via":"reference","url":"https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2"},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}]}}