A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-30218

CVE-2025-30218: Vercel Next.js Information Disclosure Flaw

CVE-2025-30218 is an information disclosure vulnerability in Vercel Next.js that exposes x-middleware-subrequest-id to third parties. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2025-30218 Overview

CVE-2025-30218 is an Information Exposure vulnerability in Vercel's Next.js framework that affects the middleware subrequest ID handling mechanism. The vulnerability was introduced as part of a mitigation for CVE-2025-29927, where Next.js implemented validation of the x-middleware-subrequest-id header. However, this subrequest ID persists across multiple incoming requests and is inadvertently sent to all destinations—including third-party hosts—when fetch requests are initiated from within Middleware. This means that sensitive internal request identifiers can leak to external services, potentially enabling tracking or correlation attacks.

Critical Impact

Internal subrequest identifiers are leaked to third-party services through fetch requests initiated in Next.js Middleware, potentially enabling request correlation and information exposure.

Affected Products

  • Vercel Next.js versions prior to 12.3.6
  • Vercel Next.js versions prior to 13.5.10
  • Vercel Next.js versions prior to 14.2.26
  • Vercel Next.js versions prior to 15.2.4

Discovery Timeline

  • April 2, 2025 - CVE-2025-30218 published to NVD
  • September 10, 2025 - Last updated in NVD database

Technical Details for CVE-2025-30218

Vulnerability Analysis

This vulnerability represents a CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) weakness in the Next.js middleware request handling. When Next.js implemented the x-middleware-subrequest-id header validation as a security measure against CVE-2025-29927, it failed to scope the header appropriately. The header was designed to identify and validate subrequests within the Next.js application itself. However, when developers use the fetch() API within Middleware to make requests to external third-party services, the x-middleware-subrequest-id header is included in those outbound requests.

The impact is primarily information disclosure—attackers who control or can monitor third-party endpoints receiving these requests could collect subrequest IDs. While the immediate confidentiality impact is limited, this leakage could be used to correlate requests, fingerprint applications, or potentially aid in more sophisticated attack chains targeting the application's middleware logic.

Root Cause

The root cause lies in the overly broad scope of the x-middleware-subrequest-id header propagation. When the mitigation for CVE-2025-29927 was implemented, the header was added to validate subrequests but was not filtered or stripped from outbound fetch requests to external hosts. The middleware request handling logic did not differentiate between internal subrequests (destined for the Next.js application) and external requests (destined for third-party services), causing the sensitive header to be transmitted beyond the application's trust boundary.

Attack Vector

The vulnerability is exploitable over the network, though exploitation requires specific conditions. An attacker would need to either control a third-party endpoint that the target Next.js application's Middleware fetches data from, or be able to observe network traffic to such endpoints.

The attack scenario involves:

  1. A Next.js application uses Middleware that initiates fetch requests to third-party services
  2. The x-middleware-subrequest-id header is automatically included in these outbound requests
  3. An attacker monitoring or controlling the third-party endpoint captures these headers
  4. The captured subrequest IDs could be used to correlate requests, understand application behavior, or potentially assist in other attack vectors

Since no verified code examples are available for this vulnerability, the exploitation mechanism is best understood through the advisory documentation. The vulnerability manifests when Middleware makes external API calls, and the internal subrequest tracking header is not properly scoped. For detailed technical analysis, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-30218

Indicators of Compromise

  • Presence of x-middleware-subrequest-id headers in outbound requests to third-party services
  • Unusual logging patterns in third-party service logs showing Next.js-specific headers
  • Network traffic analysis revealing internal middleware headers being transmitted externally

Detection Strategies

  • Review Middleware code for any fetch() calls to external third-party endpoints
  • Implement network monitoring to detect x-middleware-subrequest-id headers in outbound traffic
  • Audit application logs for third-party API calls initiated from Middleware functions
  • Use web application firewalls (WAF) to log and alert on sensitive header transmission

Monitoring Recommendations

  • Monitor outbound HTTP traffic from Next.js applications for unexpected header leakage
  • Implement alerting for requests containing x-middleware-subrequest-id destined for non-application hosts
  • Regularly audit Middleware implementations for external service integrations
  • Review third-party service logs for any captured Next.js internal headers

How to Mitigate CVE-2025-30218

Immediate Actions Required

  • Upgrade Next.js to the patched versions: 12.3.6, 13.5.10, 14.2.26, or 15.2.4 or later
  • Review all Middleware code to identify fetch requests to third-party services
  • Temporarily disable or refactor Middleware that makes external requests until patching is complete
  • Assess whether any sensitive information may have been leaked to third parties

Patch Information

Vercel has released security patches across all affected version branches. The following versions contain the fix for CVE-2025-30218:

  • Next.js 12.3.6 and later
  • Next.js 13.5.10 and later
  • Next.js 14.2.26 and later
  • Next.js 15.2.4 and later

For detailed patch information and upgrade guidance, refer to the GitHub Security Advisory and the Vercel Changelog.

Workarounds

  • Avoid making fetch requests to third-party services from within Next.js Middleware until patched
  • Move external API calls from Middleware to API routes or server-side functions
  • Implement a proxy layer that strips sensitive headers before forwarding requests externally
  • Review and restrict the scope of Middleware functions to minimize external dependencies
bash
# Upgrade Next.js to the latest patched version
npm update next@latest

# Or upgrade to a specific patched version
npm install [email protected]

# Verify the installed version
npm list next

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNext.js

  • SeverityLOW

  • CVSS Score1.7

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Vendor Resources
  • GitHub Security Advisory

  • Vercel Changelog CVE-2025-30218
  • Related CVEs
  • CVE-2025-55182

  • CVE-2025-49826

  • CVE-2025-48068
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
  • English
  • 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