Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-15265

CVE-2025-15265: Svelte SSR XSS Vulnerability

CVE-2025-15265 is an SSR XSS vulnerability in Svelte's async hydration that allows attackers to inject arbitrary JavaScript via unsanitized keys. This article covers the technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2025-15265 Overview

CVE-2025-15265 is a Server-Side Rendering (SSR) Cross-Site Scripting (XSS) vulnerability in Svelte's async hydration functionality. The vulnerability exists when attacker-controlled keys are passed to hydratable components. The key value is embedded inside a <script> block without proper HTML-safe escaping, allowing an attacker to terminate the script context using </script> and inject arbitrary JavaScript code. This enables remote script execution in users' browsers, with potential for session theft and account compromise.

Critical Impact

Remote attackers can inject arbitrary JavaScript into web applications using affected Svelte versions, potentially leading to session hijacking, credential theft, and complete account compromise of end users.

Affected Products

  • Svelte versions 5.46.0 to 5.46.2

Discovery Timeline

  • 2026-01-15 - CVE CVE-2025-15265 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2025-15265

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Cross-Site Scripting). The flaw resides in Svelte's server-side rendering implementation, specifically within the async hydration mechanism. When applications render content on the server and prepare it for client-side hydration, component keys are embedded directly into <script> blocks that facilitate the hydration process.

The core issue is that these keys are not properly sanitized or HTML-encoded before being inserted into the script context. An attacker who can control the key value passed to a hydratable component can craft a malicious payload containing </script> to prematurely close the legitimate script block, followed by arbitrary HTML and JavaScript content that will be executed in the victim's browser context.

This is a stored or reflected XSS vulnerability depending on how the application handles the attacker-controlled input. The attack requires no authentication and can be triggered remotely over the network, though user interaction (visiting the malicious page) is required for exploitation.

Root Cause

The root cause is improper output encoding in Svelte's SSR hydration code. When generating the inline <script> blocks that contain hydration data, the framework fails to apply HTML-safe escaping to key values. Specifically, special HTML characters like <, >, and / within the key are not converted to their HTML entity equivalents (e.g., <, >), allowing script context breakout.

Attack Vector

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

  1. Identifying an application using vulnerable Svelte versions (5.46.0 through 5.46.2) with SSR and async hydration enabled
  2. Crafting a malicious key value containing a script termination sequence followed by malicious JavaScript
  3. Submitting this payload to the application in a way that causes it to be used as a hydratable component key
  4. When a victim user loads the page, the malicious JavaScript executes in their browser session

The vulnerability enables attackers to steal session cookies, capture credentials, redirect users to phishing sites, or perform actions on behalf of the authenticated user. For technical details on the vulnerability mechanism, see the GitHub Security Advisory.

Detection Methods for CVE-2025-15265

Indicators of Compromise

  • Unusual </script> sequences appearing in application logs or stored data fields used as component keys
  • JavaScript errors in client-side console logs indicating unexpected script termination
  • Reports of suspicious redirects or unauthorized actions from end users
  • Network traffic containing XSS payloads targeting Svelte hydration endpoints

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block XSS patterns including </script> injection attempts
  • Deploy Content Security Policy (CSP) headers with strict script-src directives to limit impact of successful XSS
  • Monitor application logs for suspicious input patterns containing HTML special characters in key fields
  • Use runtime application self-protection (RASP) solutions to detect XSS exploitation attempts

Monitoring Recommendations

  • Enable detailed logging for server-side rendering operations to capture potentially malicious input
  • Configure browser security headers monitoring to ensure CSP policies are properly enforced
  • Set up alerts for unusual JavaScript execution patterns or client-side errors reported through error tracking services
  • Monitor for anomalous session activity that could indicate successful XSS-based session hijacking

How to Mitigate CVE-2025-15265

Immediate Actions Required

  • Upgrade Svelte to version 5.46.3 or later immediately
  • Audit applications for any user-controlled input that may be used as component keys in SSR contexts
  • Implement server-side input validation to reject keys containing HTML special characters
  • Deploy Content Security Policy headers to reduce the impact of any successful XSS exploitation

Patch Information

The Svelte development team has addressed this vulnerability in version 5.46.3. The fix implements proper HTML-safe escaping for keys embedded in hydration script blocks. Organizations should upgrade to this version or later as soon as possible.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-6738 and the Fluid Attacks Advisory.

Workarounds

  • Implement strict input validation on all values that may be used as component keys, rejecting or encoding HTML special characters
  • Apply server-side output encoding to any user-controlled data before using it in SSR contexts
  • Deploy a Web Application Firewall with XSS protection rules as a defense-in-depth measure
  • If immediate patching is not possible, consider temporarily disabling async hydration for components that use user-controlled keys
bash
# Upgrade Svelte to patched version
npm update svelte@5.46.3

# Verify installed version
npm list svelte

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechSvelte

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/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-79
  • Technical References
  • Fluid Attacks Advisory

  • GitHub Security Advisory GHSA-6738
  • Related CVEs
  • CVE-2026-27902: Svelte Framework XSS Vulnerability

  • CVE-2026-27901: Svelte Framework XSS Vulnerability

  • CVE-2026-27119: Svelte Framework XSS Vulnerability

  • CVE-2026-27121: Svelte Framework XSS 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