# CVE-2026-40072: web3.py affected by SSRF via CCIP Read (EIP-3668) OffchainLookup URL handling

- Severity: Low 1.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 19% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-04T06:38:11.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-5hr4-253g-cpx2, PYSEC-2026-3414
- Related: CVE-2026-111171
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ethereum web3.py: >= 6.0.0b3, < 7.15.0; >= 8.0.0b1, < 8.0.0b2
- web3 (PyPI): from 6.0.0b3 before 7.15.0; from 8.0.0b1 before 8.0.0b2
- apeworx web3.py: from 6.1.0 before 7.15.0; 6.0.0; 8.0.0

## Every score

- GitHub_M: CVSS:4.0 1.7 Low `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`
- GitHub: CVSS:3.1 7.2 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: 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`

## References

- <https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e> (patch, 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)

## Sources

- CVE List: [CVE-2026-40072](https://www.cve.org/CVERecord?id=CVE-2026-40072), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-5hr4-253g-cpx2](https://github.com/advisories/GHSA-5hr4-253g-cpx2), CC-BY-4.0, modified 2026-10-16
- NVD: [CVE-2026-40072](https://nvd.nist.gov/vuln/detail/CVE-2026-40072), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-3414](https://osv.dev/vulnerability/PYSEC-2026-3414), CC-BY-4.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-40072 · Whole record: https://cve.day/CVE-2026-40072.json · Rebuilt by cve.day 2026-11-25T22:59:18.398Z
