CVE-2026-40072
LOW 1.7CVSS 4.0web3.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.
- Published
- 9 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- CVE-2026-111171GHSA-5hr4-253g-cpx2PYSEC-2026-3414
- Sources
- NVDJSONOSV GHSA-5hr4-253g-cpx2JSONOSV PYSEC-2026-3414JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 1.7 | 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/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 | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:*:*:*:*:*:python:*:* |
>= 6.1.0, < 7.15.0 | 7.15.0 |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:-:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta10:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta11:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta3:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta4:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta5:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta6:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta7:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta8:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:6.0.0:beta9:*:*:*:python:*:* |
= 6.0.0 | |
| NVD | apeworx | web3.pycpe:2.3:a:apeworx:web3.py:8.0.0:beta1:*:*:*:python:*:* |
= 8.0.0 | |
| OSV | PyPI | web3 | >= 6.0.0b3, < 7.15.0 | 7.15.0 |
| OSV | PyPI | web3 | >= 8.0.0b1, < 8.0.0b2 | 8.0.0b2 |
| OSV | PyPI | web3 | >= 6.0.0b3, < 7.15.0; >= 8.0.0b1, < 8.0.0b2 | 7.15.0, 8.0.0b2 |
References
- https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e · Patch, WEB
- https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40072 · ADVISORY
- https://github.com/ethereum/web3.py · PACKAGE
- https://pypi.org/project/web3 · PACKAGE
- https://github.com/advisories/GHSA-5hr4-253g-cpx2 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Apr 2026)