CVE Vulnerabilities

CVE-2026-40072

Server-Side Request Forgery (SSRF)

Published: Apr 09, 2026 | Modified: Jun 02, 2026
CVSS 3.x
7.2
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
root.io logo minimus.io logo echo.ai logo

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

Weakness

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Affected Software

NameVendorStart VersionEnd Version
Web3.pyApeworx6.1.0 (including)7.15.0 (excluding)
Web3.pyApeworx6.0.0 (including)6.0.0 (including)
Web3.pyApeworx6.0.0-beta10 (including)6.0.0-beta10 (including)
Web3.pyApeworx6.0.0-beta11 (including)6.0.0-beta11 (including)
Web3.pyApeworx6.0.0-beta3 (including)6.0.0-beta3 (including)
Web3.pyApeworx6.0.0-beta4 (including)6.0.0-beta4 (including)
Web3.pyApeworx6.0.0-beta5 (including)6.0.0-beta5 (including)
Web3.pyApeworx6.0.0-beta6 (including)6.0.0-beta6 (including)
Web3.pyApeworx6.0.0-beta7 (including)6.0.0-beta7 (including)
Web3.pyApeworx6.0.0-beta8 (including)6.0.0-beta8 (including)
Web3.pyApeworx6.0.0-beta9 (including)6.0.0-beta9 (including)
Web3.pyApeworx8.0.0-beta1 (including)8.0.0-beta1 (including)

References