cve.bz

CVE-2026-40072 apeworx web3.py: SSRF

1.7 lowExploit referenceEPSS 0.2%Fix available

Low (1.7) in apeworx web3.py. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in web3 7.15.0, 8.0.0b2.

On this page
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.

Severity

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

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40072 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40072?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40072?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40072 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apeworx:web3.pyfrom 6.1.0 before 7.15.0
apeworx:web3.py6.0.0
apeworx:web3.py6.0.0:beta10
apeworx:web3.py6.0.0:beta11
apeworx:web3.py6.0.0:beta3
apeworx:web3.py6.0.0:beta4
apeworx:web3.py6.0.0:beta5
apeworx:web3.py6.0.0:beta6
apeworx:web3.py6.0.0:beta7
apeworx:web3.py6.0.0:beta8
apeworx:web3.py6.0.0:beta9
apeworx:web3.py8.0.0:beta1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5hr4-253g-cpx2PyPIweb3>=6.0.0b3 <7.15.07.15.0
GHSA-5hr4-253g-cpx2PyPIweb3>=8.0.0b1 <8.0.0b28.0.0b2
PYSEC-2026-3414PyPIweb3>=6.0.0b3 <7.15.0
>=8.0.0b1 <8.0.0b2
7.15.0, 8.0.0b2

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON