Skip to content

web3-5.23.0-py3-none-any.whl: 1 vulnerabilities (highest severity is: 7.2) #52

Description

@mend-bolt-for-github
Vulnerable Library - web3-5.23.0-py3-none-any.whl

web3.py

Library home page: https://files.pythonhosted.org/packages/ac/4b/98f1cba1934c6a72c71f04bf1ae9e18e54d077fe23151a1c3fc22ea1aa9e/web3-5.23.0-py3-none-any.whl

Path to dependency file: /blockchain/requirements.txt

Path to vulnerable library: /blockchain/requirements.txt

Found in HEAD commit: 56243b6f6a9d69dc996086fd1497f2255877936c

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (web3 version) Remediation Possible**
CVE-2026-40072 High 7.2 web3-5.23.0-py3-none-any.whl Direct 7.15.0

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-40072

Vulnerable Library - web3-5.23.0-py3-none-any.whl

web3.py

Library home page: https://files.pythonhosted.org/packages/ac/4b/98f1cba1934c6a72c71f04bf1ae9e18e54d077fe23151a1c3fc22ea1aa9e/web3-5.23.0-py3-none-any.whl

Path to dependency file: /blockchain/requirements.txt

Path to vulnerable library: /blockchain/requirements.txt

Dependency Hierarchy:

  • web3-5.23.0-py3-none-any.whl (Vulnerable Library)

Found in HEAD commit: 56243b6f6a9d69dc996086fd1497f2255877936c

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-04-09

URL: CVE-2026-40072

CVSS 3 Score Details (7.2)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-04-09

Fix Resolution: 7.15.0

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions