CVE-2026-111171
web3.py affected by SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling
Also known as CVE-2026-40072, GHSA-5hr4-253g-cpx2, PYSEC-2026-3414
Mitigation
- Upgrade web3 to one of 7.15.0, 8.0.0b2 (or later in the same release line).
Who should check
- Projects that depend on PyPI package web3 (>= 6.0.0b3, < 7.15.0)
- Anyone running ethereum web3.py >= 6.0.0b3, < 7.15.0; >= 8.0.0b1, < 8.0.0b2
Vulnerability facts
- Affected
- web3 >= 6.0.0b3, < 7.15.0
- Fixed in
- 7.15.0, 8.0.0b2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 1.7 (v4.0, CNA)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:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- Exploit maturity: Unreported
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-918
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-111171. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-111171.md Affected: web3 >= 6.0.0b3, < 7.15.0 Fixed in: 7.15.0, 8.0.0b2 Steps: 1. Search this machine and project for web3 (PyPI), ethereum web3.py: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-111171 being exploited?
There is no confirmed exploitation: CVE-2026-111171 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-111171?
Low: CVSS 1.7 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-111171?
web3 >= 6.0.0b3, < 7.15.0.
Is there a fix for CVE-2026-111171?
Yes. Fixed in 7.15.0, 8.0.0b2. Upgrade web3 to one of 7.15.0, 8.0.0b2 (or later in the same release line).
How do I check if I'm affected by CVE-2026-111171?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.