The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40072

CVE-2026-40072: web3.py SSRF Vulnerability via CCIP Read

CVE-2026-40072 is an SSRF vulnerability in web3.py that allows malicious contracts to force HTTP requests to arbitrary destinations. This post explains its impact, affected versions, and mitigation steps.

Published: April 9, 2026

CVE-2026-40072 Overview

CVE-2026-40072 is a Server-Side Request Forgery (SSRF) vulnerability affecting web3.py, a popular Python library for interacting with the Ethereum blockchain. The vulnerability exists in the CCIP Read / OffchainLookup (EIP-3668) implementation, which performs HTTP requests to URLs supplied by smart contracts without any destination validation. Versions from 6.0.0b3 to before 7.15.0 and 8.0.0b2 are affected.

The implementation uses contract-supplied URLs directly (after {sender} / {data} template substitution) without validating the destination. Since CCIP Read is enabled by default (global_ccip_read_enabled = True on all providers), any application using web3.py's .call() method is exposed without explicit opt-in.

Critical Impact

A malicious contract can force the web3.py process to issue HTTP requests to arbitrary destinations, including internal network services and cloud metadata endpoints, potentially exposing sensitive infrastructure to attackers.

Affected Products

  • web3.py versions 6.0.0b3 to 7.14.x
  • web3.py versions 8.0.0b0 to 8.0.0b1
  • Backend services, indexers, and APIs using web3.py's .call() method against untrusted contracts

Discovery Timeline

  • 2026-04-09 - CVE CVE-2026-40072 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-40072

Vulnerability Analysis

This vulnerability stems from insufficient input validation in the CCIP Read implementation (EIP-3668). When web3.py processes an OffchainLookup response from a smart contract, it accepts URLs from the offchain_lookup_payload["urls"] array and performs HTTP requests to those destinations without any validation or sanitization.

The flaw is particularly dangerous because CCIP Read functionality is enabled by default across all providers. This means developers may unknowingly expose their backend infrastructure to SSRF attacks simply by using the standard .call() method against user-supplied or untrusted contract addresses.

In exploitation scenarios, an attacker deploys a malicious smart contract that returns an OffchainLookup error containing URLs pointing to internal network resources, cloud metadata services (such as http://169.254.169.254/), or other sensitive endpoints. When a web3.py application calls this contract, the library automatically follows the CCIP Read protocol and makes requests to these attacker-controlled URLs.

Root Cause

The root cause is classified under CWE-918 (Server-Side Request Forgery). The web3.py library's handle_offchain_lookup and async_handle_offchain_lookup functions perform HTTP requests to URLs provided in smart contract responses without implementing URL validation, allowlisting, or blocking of sensitive destinations. The lack of input validation on contract-supplied URLs creates a direct path for SSRF exploitation.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Deploying a malicious smart contract that implements the CCIP Read pattern
  2. Configuring the contract to return OffchainLookup errors with URLs pointing to internal services
  3. Tricking or waiting for a vulnerable web3.py application to call the malicious contract
  4. The web3.py library automatically performs HTTP requests to the attacker-specified URLs
  5. Responses from internal services may be returned to the attacker or used to map internal infrastructure

The security patch introduces URL validation controls to the CCIP Read implementation:

python
                 durin_calldata = await async_handle_offchain_lookup(
                     offchain_lookup.payload,
                     transaction,
+                    allow_http=self.w3.provider.ccip_read_allow_http,
+                    url_validator=self.w3.provider.ccip_read_url_validator,
                 )
                 transaction["data"] = durin_calldata

Source: GitHub Commit Update

Detection Methods for CVE-2026-40072

Indicators of Compromise

  • Unexpected outbound HTTP requests from web3.py processes to internal IP ranges (10.x.x.x, 172.16.x.x, 192.168.x.x)
  • HTTP requests to cloud metadata endpoints (169.254.169.254) originating from Ethereum-interacting services
  • Unusual network traffic patterns from backend services performing blockchain operations
  • Log entries showing CCIP Read requests to non-standard or internal URLs

Detection Strategies

  • Monitor network traffic from web3.py applications for requests to RFC 1918 private address ranges
  • Implement egress filtering and logging on services that interact with the Ethereum blockchain
  • Review application logs for OffchainLookup events that reference unexpected URL patterns
  • Deploy network-level IDS/IPS rules to detect SSRF patterns targeting cloud metadata services

Monitoring Recommendations

  • Enable verbose logging for web3.py operations to capture CCIP Read URL requests
  • Configure alerts for outbound connections from blockchain services to internal network segments
  • Implement application-level monitoring to track all URLs accessed via CCIP Read functionality
  • Review smart contract interaction logs for contracts with suspicious OffchainLookup responses

How to Mitigate CVE-2026-40072

Immediate Actions Required

  • Upgrade web3.py to version 7.15.0 or 8.0.0b2 immediately
  • Audit applications using web3.py's .call() method against untrusted contract addresses
  • Consider disabling CCIP Read functionality (global_ccip_read_enabled = False) until patches can be applied
  • Implement network-level egress controls to prevent access to sensitive internal endpoints

Patch Information

The vulnerability is fixed in web3.py versions 7.15.0 and 8.0.0b2. The patch introduces two new provider configuration options: ccip_read_allow_http to control HTTP protocol usage and ccip_read_url_validator to enable custom URL validation logic. These controls allow developers to restrict which URLs can be accessed during CCIP Read operations.

For additional details, refer to the GitHub Security Advisory GHSA-5hr4-253g-cpx2.

Workarounds

  • Disable CCIP Read globally by setting global_ccip_read_enabled = False on your Web3 provider instance
  • Implement network-level firewall rules blocking outbound requests from web3.py services to internal networks
  • Use a proxy or gateway that validates and filters outbound URLs before allowing requests
  • Avoid calling untrusted or user-supplied contract addresses in environments where SSRF could be impactful
bash
# Configuration example - Disable CCIP Read on Web3 provider
# In your Python application:
# from web3 import Web3
# w3 = Web3(Web3.HTTPProvider('https://your-node-url'))
# w3.provider.global_ccip_read_enabled = False

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechWeb3

  • SeverityLOW

  • CVSS Score1.7

  • Known ExploitedNo
  • CVSS Vector
  • 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5hr4-253g-cpx2
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English