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-2025-6087

CVE-2025-6087: Cloudflare Create-cloudflare SSRF Vulnerability

CVE-2025-6087 is a Server-Side Request Forgery flaw in Cloudflare Create-cloudflare that allows attackers to proxy arbitrary remote content via the /_next/image endpoint. This article covers technical details, impact, and steps.

Updated: January 22, 2026

CVE-2025-6087 Overview

A Server-Side Request Forgery (SSRF) vulnerability was identified in the @opennextjs/cloudflare package. The vulnerability stems from an unimplemented feature in the Cloudflare adapter for Open Next, which allowed unauthenticated users to proxy arbitrary remote content via the /_next/image endpoint.

This issue allowed attackers to load remote resources from arbitrary hosts under the victim site's domain for any site deployed using the Cloudflare adapter for Open Next. For example, an attacker could craft a URL such as https://victim-site.com/_next/image?url=https://attacker.com to serve attacker-controlled content through the victim site's domain, violating the same-origin policy and potentially misleading users or other services.

Critical Impact

Unauthenticated attackers can proxy arbitrary remote content through victim sites deployed with the Cloudflare adapter for Open Next, enabling SSRF attacks, arbitrary content loading, internal service exposure, and phishing risks through domain abuse.

Affected Products

  • @opennextjs/cloudflare versions prior to 1.3.0
  • create-cloudflare (c3) versions prior to 2.49.3
  • Sites deployed to Cloudflare using the affected Cloudflare adapter for Open Next

Discovery Timeline

  • 2025-06-16 - CVE-2025-6087 published to NVD
  • 2025-08-06 - Last updated in NVD database

Technical Details for CVE-2025-6087

Vulnerability Analysis

This SSRF vulnerability exists due to an unimplemented feature in the Cloudflare adapter for Open Next that failed to properly validate and restrict URLs passed to the /_next/image endpoint. The Next.js image optimization feature is designed to serve optimized images, but without proper URL validation, it becomes an open proxy that can fetch and serve content from arbitrary remote hosts.

The vulnerability allows unauthenticated users to abuse the image optimization endpoint to proxy content from any external URL. When a request is made to the /_next/image endpoint with a malicious url parameter, the server fetches and serves the content from the attacker-specified URL under the victim site's domain. This violates the same-origin policy and can be leveraged for various attack scenarios.

Root Cause

The root cause of this vulnerability is the lack of URL validation and restriction in the Cloudflare adapter's implementation of the Next.js image optimization endpoint. The /_next/image endpoint was not properly configured to:

  1. Validate that requested URLs are from allowed domains
  2. Restrict content types to images only
  3. Implement the remotePatterns filtering that Next.js provides for external image sources

Without these safeguards, the endpoint functioned as an unrestricted proxy, allowing attackers to load arbitrary remote content through the victim's domain.

Attack Vector

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

  1. Identifying a target site deployed using the vulnerable Cloudflare adapter for Open Next
  2. Crafting a malicious URL targeting the /_next/image endpoint with an attacker-controlled URL as the url parameter
  3. Distributing the crafted URL to victims or using it for SSRF attacks against internal services

The attack can be weaponized for phishing campaigns where malicious content appears to originate from a trusted domain, or for probing internal services that may be accessible from the Cloudflare worker environment.

Detection Methods for CVE-2025-6087

Indicators of Compromise

  • Unexpected outbound requests from Cloudflare workers to external domains not in your allowlist
  • High volume of requests to the /_next/image endpoint with external URLs
  • Access logs showing /_next/image requests with suspicious or unfamiliar domain parameters
  • Reports of phishing content appearing to originate from your domain

Detection Strategies

  • Monitor access logs for /_next/image endpoint requests with external url parameters
  • Implement alerting on requests to /_next/image with URLs pointing to non-allowlisted domains
  • Review Cloudflare worker analytics for unusual request patterns or destinations
  • Set up anomaly detection for spikes in image optimization endpoint usage

Monitoring Recommendations

  • Enable detailed logging for all requests to the /_next/image endpoint
  • Configure alerts for outbound requests to unexpected external hosts
  • Regularly audit the remotePatterns configuration in your Next.js config
  • Monitor for reports of phishing or impersonation campaigns using your domain

How to Mitigate CVE-2025-6087

Immediate Actions Required

  • Upgrade @opennextjs/cloudflare to version 1.3.0 or later immediately
  • Upgrade create-cloudflare (c3) to version 2.49.3 or later
  • Configure the remotePatterns filter in your Next.js config to allowlist only trusted external image sources
  • Verify that server-side platform updates from Cloudflare have been applied to your deployment

Patch Information

Cloudflare has deployed server-side updates to their platform that automatically restrict the content loaded via the /_next/image endpoint to images only. This mitigation applies automatically to all existing and future sites deployed to Cloudflare using the affected version of the adapter.

The root cause fix is available in the opennextjs-cloudflare pull request #727. The patched version of the Cloudflare adapter is @opennextjs/cloudflare@1.3.0, available on npm. The create-cloudflare package has also been updated in workers-sdk pull request #9608, with the patched version create-cloudflare@2.49.3 available on npm.

Workarounds

  • Configure the remotePatterns filter in your next.config.js to explicitly allowlist only trusted external image domains
  • Implement a web application firewall (WAF) rule to block requests to /_next/image with untrusted external URLs
  • If image optimization from external sources is not needed, restrict the /_next/image endpoint to local images only
  • Monitor and log all requests to the image optimization endpoint for suspicious activity
javascript
// next.config.js - Configure remotePatterns to restrict external image sources
module.exports = {
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'trusted-cdn.example.com',
        port: '',
        pathname: '/images/**',
      },
      // Add additional trusted domains as needed
    ],
  },
}

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

  • EPSS Probability0.19%

  • 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:L/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-918
  • Technical References
  • GitHub PoC Repository
  • Related CVEs
  • CVE-2026-3125: OpenNext 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