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
    • 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-3125

CVE-2026-3125: OpenNext Cloudflare SSRF Vulnerability

CVE-2026-3125 is an SSRF vulnerability in @opennextjs/cloudflare that exploits path normalization in the /cdn-cgi/image/ handler, allowing attackers to bypass Cloudflare edge interception and fetch arbitrary remote URLs.

Published: March 6, 2026

CVE-2026-3125 Overview

A Server-Side Request Forgery (SSRF) vulnerability was identified in the @opennextjs/cloudflare package, resulting from a path normalization bypass in the /cdn-cgi/image/ handler. This vulnerability allows attackers to bypass Cloudflare's edge interception by substituting a backslash for a forward slash in the URL path, enabling unvalidated fetches of arbitrary remote URLs through victim domains.

The @opennextjs/cloudflare worker template includes a /cdn-cgi/image/ handler intended for development use only. In production environments, Cloudflare's edge normally intercepts /cdn-cgi/image/ requests before they reach the Worker. However, by using /cdn-cgi\image/ instead of /cdn-cgi/image/, an attacker can bypass this edge interception entirely. The JavaScript URL class then normalizes the backslash to a forward slash, causing the request to match the handler and trigger an unvalidated fetch of arbitrary remote URLs.

Critical Impact

Attackers can serve attacker-controlled content through a victim site's domain, violating the same-origin policy, potentially misleading users, and exposing private cache data stored under protected /cdn-cgi/ paths.

Affected Products

  • @opennextjs/cloudflare package (versions prior to 1.17.1)
  • Cloudflare Workers with Assets
  • Cloudflare Pages deployments

Discovery Timeline

  • 2026-03-04 - CVE CVE-2026-3125 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-3125

Vulnerability Analysis

This SSRF vulnerability exploits a discrepancy between how Cloudflare's edge infrastructure processes URL paths versus how the JavaScript URL class normalizes them within Workers. The core issue lies in inconsistent handling of path separators across different layers of the application stack.

The /cdn-cgi/image/ handler was designed as a development-only feature that should never be accessible in production environments. Cloudflare's edge infrastructure is supposed to intercept any requests to /cdn-cgi/ paths before they reach the Worker. However, when an attacker substitutes a backslash character (\) for the forward slash after cdn-cgi, the edge infrastructure fails to recognize this as a /cdn-cgi/ path and allows the request through.

Once the request reaches the Worker, the JavaScript URL class performs path normalization, converting the backslash to a forward slash. This normalization causes the previously bypassed path to now match the /cdn-cgi/image/ handler, triggering the vulnerable code path.

The impact extends beyond simple SSRF. The vulnerability also affects Cloudflare Workers with Assets and Cloudflare Pages, where assets stored under /cdn-cgi/ paths that should be private become publicly accessible. Notably, Open Next projects store incremental cache data under /cdn-cgi/_next_cache, which could expose sensitive cached application data.

Root Cause

The root cause is classified as CWE-706 (Use of Incorrectly-Resolved Name or Reference). The vulnerability stems from inconsistent path normalization between Cloudflare's edge infrastructure and the JavaScript URL class within Workers. The edge infrastructure does not normalize backslashes to forward slashes before making routing decisions, while the URL class does perform this normalization. This creates a security gap where crafted paths can bypass security controls at the edge but still match protected handlers within the Worker.

Attack Vector

The attack requires network access and can be executed without authentication or user interaction. An attacker crafts a URL replacing the forward slash after cdn-cgi with a backslash character. This request must be sent via HTTP clients that preserve backslashes in paths, such as curl with the --path-as-is flag.

For example, a malicious request like https://victim-site.com/cdn-cgi\image/aaaa/https://attacker.com would bypass edge interception, reach the Worker, get normalized to match the image handler, and then fetch content from the attacker-controlled URL. This content is then served through the victim's domain, effectively allowing attackers to proxy arbitrary content through trusted domains.

Note that this bypass does not work via standard web browsers, as browsers normalize backslashes to forward slashes before sending HTTP requests. However, HTTP clients, scripts, APIs, and backend services that preserve path characters can successfully exploit this vulnerability.

Detection Methods for CVE-2026-3125

Indicators of Compromise

  • HTTP access logs showing requests containing backslash characters in the path, particularly patterns matching /cdn-cgi\ or /cdn-cgi%5C
  • Outbound network connections from Workers to unexpected external domains or IP addresses
  • Unusual access patterns to /cdn-cgi/_next_cache or other protected asset paths

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing backslash characters in URL paths targeting /cdn-cgi endpoints
  • Monitor Worker execution logs for fetch requests to external URLs that were not explicitly whitelisted
  • Deploy anomaly detection to identify requests with unusual path encoding patterns

Monitoring Recommendations

  • Configure alerting for any HTTP requests containing \image/ or %5Cimage/ path segments in access logs
  • Monitor for increased outbound traffic from Workers to external domains that are not part of normal application behavior
  • Implement logging for all cache access operations under /cdn-cgi/_next_cache paths to detect unauthorized data exposure

How to Mitigate CVE-2026-3125

Immediate Actions Required

  • Upgrade @opennextjs/cloudflare package to version 1.17.1 or later immediately
  • Audit Worker configurations to ensure development-only handlers are not exposed in production deployments
  • Review access logs for historical exploitation attempts using backslash-based path bypass techniques

Patch Information

The vulnerability has been addressed in @opennextjs/cloudflare version 1.17.1. The fix is available through the official NPM package. For detailed information about the security fix, refer to the GitHub Pull Request that implemented the patch. The GitHub Security Advisory provides additional context and remediation guidance.

Workarounds

  • Deploy WAF rules at the edge to normalize or reject requests containing backslash characters in URL paths before they reach Workers
  • Implement input validation within Worker code to explicitly reject any requests containing backslash characters in path segments
  • If the /cdn-cgi/image/ handler is not required for your application, consider removing or disabling it entirely in production configurations
bash
# Update @opennextjs/cloudflare to patched version
npm update @opennextjs/cloudflare@1.17.1

# Verify the installed version
npm list @opennextjs/cloudflare

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechCloudflare

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:N/SA:N/E:X/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-706
  • Technical References
  • GitHub Security Advisory

  • GitHub Pull Request

  • CVE Record for CVE-2025-6087

  • NPM Package Version 1.17.1
  • Related CVEs
  • CVE-2025-6087: Cloudflare Create-cloudflare SSRF Vulnerability

  • CVE-2026-1721: AI Playground OAuth XSS Vulnerability

  • CVE-2026-1664: Cloudflare Agents SDK Auth Bypass Flaw
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