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-44581

CVE-2026-44581: Next.js App Router Stored XSS Vulnerability

CVE-2026-44581 is a stored XSS vulnerability in Next.js App Router that allows attackers to poison cached responses and execute malicious scripts. This article covers the technical details, affected versions, and mitigation.

Published: May 14, 2026

CVE-2026-44581 Overview

CVE-2026-44581 is a stored cross-site scripting (XSS) vulnerability in Next.js, the React framework maintained by Vercel for building full-stack web applications. The flaw affects App Router applications that use Content Security Policy (CSP) nonces and are deployed behind shared caches. Malformed nonce values derived from request headers are reflected into rendered HTML in an unsafe way. An attacker can poison cached responses, causing arbitrary script execution for later visitors of the cached page. The vulnerability is tracked under [CWE-79] and is fixed in Next.js 15.5.16 and 16.2.5.

Critical Impact

An unauthenticated remote attacker can poison shared caches with malicious nonce-derived markup, triggering stored XSS against every subsequent visitor of the cached response.

Affected Products

  • Next.js versions 13.4.0 through versions before 15.5.16
  • Next.js 16.x versions before 16.2.5
  • App Router applications relying on CSP nonces behind shared caches

Discovery Timeline

  • 2026-05-13 - CVE-2026-44581 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-44581

Vulnerability Analysis

Next.js App Router supports per-request CSP nonces generated from request headers. The framework injects these nonce values into rendered HTML to authorize inline scripts under a strict CSP. The affected versions do not properly validate or sanitize the nonce values before reflecting them into the response body.

When a Next.js application sits behind a shared cache such as a content delivery network (CDN) or reverse proxy, the cache stores rendered HTML keyed on request properties. An attacker who controls the header value used to derive the nonce can submit a malformed payload. The malformed value is reflected into the HTML and persists in the cache. Subsequent visitors receive the poisoned response, and the attacker-controlled markup executes in their browsers within the application origin.

The issue is classified as Improper Neutralization of Input During Web Page Generation [CWE-79]. Successful exploitation requires user interaction and a high-complexity setup involving the shared cache, which is reflected in the medium severity rating.

Root Cause

The root cause is insufficient validation of nonce values derived from untrusted request headers before insertion into HTML output. The framework treats the header-derived nonce as a safe token rather than untrusted input, omitting context-aware escaping for the HTML attribute and script tag contexts where the value is rendered.

Attack Vector

The attack vector is network-based and unauthenticated. An attacker crafts a request containing a malformed header that drives nonce derivation. The shared cache stores the resulting poisoned HTML. Any later user who requests the same cache key receives the attacker's injected script. Exploitation depends on the application's CSP configuration, the cache key behavior, and a victim visiting the cached route.

No verified proof-of-concept code is published. Refer to the GitHub Security Advisory GHSA-ffhc-5mcf-pf4q for vendor technical details.

Detection Methods for CVE-2026-44581

Indicators of Compromise

  • Unexpected <script> tags or anomalous nonce attribute values in cached HTML responses served by CDN or reverse-proxy layers.
  • Cache entries containing non-alphanumeric or oversized values where a base64 CSP nonce is expected.
  • Outbound browser requests from end users to attacker-controlled domains originating from cached Next.js routes.

Detection Strategies

  • Inspect CDN and edge cache logs for requests carrying unusual or malformed headers that influence nonce generation.
  • Compare freshly rendered server responses against cached responses for the same route to identify drift in nonce-bearing markup.
  • Deploy CSP report-only endpoints and monitor report-uri or report-to violations indicating injected inline scripts.

Monitoring Recommendations

  • Enable verbose access logging on shared caches and forward logs to a SIEM for correlation with CSP violation reports.
  • Alert on Next.js application versions in production that match the affected range 13.4.0 through pre-15.5.16 or pre-16.2.5.
  • Track anomalous spikes in identical cache-hit responses to specific routes following requests with unusual header content.

How to Mitigate CVE-2026-44581

Immediate Actions Required

  • Upgrade Next.js to 15.5.16 or 16.2.5 across all environments running the App Router.
  • Purge all shared cache entries for routes that render CSP nonces to evict any poisoned responses.
  • Audit application code paths that generate CSP nonces from request headers and confirm they accept only the framework-supplied values.

Patch Information

Vercel released fixed versions 15.5.16 and 16.2.5 of Next.js. The patches sanitize nonce values before reflecting them into rendered HTML. Review the Next.js GitHub Security Advisory GHSA-ffhc-5mcf-pf4q for the official fix and upgrade guidance.

Workarounds

  • Disable shared caching for routes that emit CSP nonces until the framework upgrade is deployed.
  • Strip or override client-controlled headers at the CDN or edge layer before they reach the Next.js origin.
  • Enforce a strict CSP without unsafe-inline fallback and validate that nonce values match an expected base64 character set at the edge.
bash
# Upgrade Next.js to a fixed version
npm install next@15.5.16
# or for the 16.x branch
npm install next@16.2.5

# Purge CDN cache for nonce-bearing routes (example: Vercel)
vercel cache purge --scope <team>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechNext.js

  • SeverityMEDIUM

  • CVSS Score4.7

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-44580: Next.js beforeInteractive XSS Vulnerability

  • CVE-2025-13984: Drupal Next.js XSS Vulnerability

  • CVE-2026-44582: Next.js Cache Poisoning Vulnerability

  • CVE-2026-44578: Next.js SSRF Vulnerability
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