Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) indicates a remote attack surface with low attack complexity, but low overall impact (no confidentiality or integrity of the target system itself, only side-channel leakage and service degradation). However, the real-world risk is substantially elevated by two contextual factors: (1) the default-enabled state of CCIP Read creates an implicit threat surface for all web3.py deployments without explicit mitigation, and (2) the SSRF exposure is particularly dangerous in backend environments (APIs, indexers, blockchain validators) that have privileged network access to internal services and cloud metadata endpoints (e.g., AWS IMDSv1, Kubernetes API servers). The EPSS score (E:U) and attack timing requirement (AT:P) suggest exploitation requires attacker control of a smart contract or the ability to influence which contract is called, reducing the likelihood of mass exploitation but not eliminating it for targeted attacks. The primary risk surface is in services that call untrusted or user-influenced contract addresses; legitimate applications calling only known, vetted contracts face lower risk. This is a high-priority vulnerability for infrastructure providers and multi-contract platforms but lower priority for applications with strict contract whitelisting. |
| Exploit ScenarioDerived | An attacker deploys a malicious ERC-20 or similar contract to Ethereum that, when its view function is called via web3.py's .call() method, triggers CCIP Read and returns offchain_lookup_payload with crafted URLs pointing to internal services (e.g., http://169.254.169.254/latest/meta-data/, http://internal-api:8080/admin). A backend indexer or API service using web3.py processes user-submitted or attacker-influenced contract addresses and invokes .call() on the malicious contract, triggering the library to issue HTTP requests to those internal endpoints. The attacker can then harvest environment variables, cloud credentials, or internal service responses to escalate privileges or map the target's network topology. This does not require user interaction or authentication of the web3.py application; only that the target application calls .call() on the attacker's contract. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Server-Side Request Forgery in web3.py 6.0.0b3 through 7.14.x and 8.0.0b1 enables malicious smart contracts to force the library to issue HTTP requests to arbitrary destinations via CCIP Read (EIP-3668) URL templates without destination validation. The vulnerability affects all applications using web3.py's .call() method against untrusted contract addresses, as CCIP Read is enabled by default, allowing attackers to target internal network services and cloud metadata endpoints. The issue is remedied in versions 7.15.0 and 8.0.0b2.
RemediationAI
Upgrade web3.py to version 7.15.0 or later for the 7.x series, or 8.0.0b2 or later for the 8.x series. For immediate mitigation on older versions, disable CCIP Read globally by setting global_ccip_read_enabled = False on all provider instances, though this may impact functionality for legitimate offchain lookups. The upstream fix (commit b1c57bb0a124359c9902daaefab4d8af7c3c4c1e) validates destination URLs before issuing HTTP requests. Applications should review their web3.py dependencies and prioritize patching in backend services, indexers, and APIs that process calls to user-influenced or untrusted smart contracts. Additional hardening includes restricting outbound network access from web3.py processes via firewall rules or runtime policies to block requests to internal network ranges and cloud metadata endpoints (e.g., 169.254.169.254, 127.0.0.1). The official patch is available at https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
web3.py is a Python library for interacting with Ethereum blockchain nodes via JSON-RPC. It implements CCIP Read (Canonical Contract Interface Profile Read, defined in EIP-3668), which allows smart contracts to specify offchain data sources through the offchain_lookup_payload structure. When a contract invokes the offchain lookup mechanism, the library constructs HTTP requests using URLs supplied directly by the contract code after simple template substitution for {sender} and {data} placeholders. The root cause (CWE-918: Server-Side Request Forgery) stems from the absence of URL validation or destination allowlisting before these HTTP requests are dispatched. The vulnerability is particularly severe because CCIP Read is globally enabled by default (global_ccip_read_enabled = True) on all provider instances, meaning developers must explicitly disable the feature to protect their applications-rather than requiring explicit opt-in for the offchain lookup mechanism. The affected CPE range is ethereum:web3.py versions 6.0.0b3 through before 7.15.0, and 8.0.0b2 specifically.
Know when Ethereum gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 pypi packages depend on web3 (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.0.0b3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Py-EVM v0.2.0-alpha.33 allows attackers to make a vm.execute_bytecode call that triggers computation._stack.values with
A design flaw in all versions of Go-Ethereum allows an attacker node to send 5120 pending transactions of a high gas pri
A design flaw in Go-Ethereum 1.10.12 and older versions allows an attacker node to send 5120 future transactions with a
Geth (aka go-ethereum) through 1.13.4, when --http --graphql is used, allows remote attackers to cause a denial of servi
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the eth-account PyPI package, when an at
Go Ethereum (aka geth) 1.8.19 allows attackers to cause a denial of service (memory consumption) by rewriting the length
cmd/evm/runner.go in Go Ethereum (aka geth) 1.8.17 allows attackers to cause a denial of service (SEGV) via crafted byte
The GetBlockHeadersMsg handler in the LES protocol implementation in Go Ethereum (aka geth) before 1.8.11 may lead to an
Go Ethereum (aka geth) through 1.10.21 allows attackers to increase rewards by mining blocks in certain situations, and
Circuit soundness failure in Payy (polybase/payy) prior to 1.3.0 lets an authorized rollup prover smuggle an extra burn
Geth versions prior to 1.16.9 can be remotely crashed by sending a specially crafted message over the network, allowing
Go Ethereum (geth) nodes can be remotely crashed through maliciously crafted network messages, causing denial of service
EUVD-2026-21000
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB