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

CVE-2025-57820: Svelte Devalue Prototype Pollution Flaw

CVE-2025-57820 is a prototype pollution vulnerability in Svelte devalue affecting versions prior to 5.3.2. Attackers can exploit __proto__ properties to manipulate object prototypes. This article covers technical details, impact, and mitigation.

Published: May 11, 2026

CVE-2025-57820 Overview

CVE-2025-57820 is a prototype pollution vulnerability in Svelte devalue, a utility library used to serialize and deserialize JavaScript values. Versions prior to 5.3.2 allow a crafted string passed to devalue.parse to represent an object containing a __proto__ property. The function also fails to verify that an index is numeric. Attackers can exploit this combination to assign prototypes to objects and properties, polluting the JavaScript prototype chain. The issue is tracked under [CWE-1321] and has been fixed in devalue 5.3.2.

Critical Impact

Successful prototype pollution can alter application behavior across the runtime, enabling downstream attacks such as authentication bypass, denial of service, or remote code execution depending on how the host application consumes parsed objects.

Affected Products

  • Svelte devalue versions prior to 5.3.2
  • Node.js and browser applications calling devalue.parse on untrusted input
  • SvelteKit applications relying on devalue for server-to-client payload deserialization

Discovery Timeline

  • 2025-08-26 - CVE-2025-57820 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-57820

Vulnerability Analysis

The devalue library serializes JavaScript values, including cyclic and complex structures, into strings that can later be reconstructed using devalue.parse. The parser walks an index-based representation and assigns properties to reconstructed objects. Two defects converge in versions prior to 5.3.2. First, the parser does not reject keys named __proto__, allowing attacker-controlled data to overwrite an object's prototype. Second, the parser does not validate that indices used during reconstruction are numeric, which expands the surface where polluted values can be assigned.

An attacker who controls input to devalue.parse can therefore mutate Object.prototype properties seen by the entire JavaScript process. Subsequent property lookups across unrelated objects then return attacker-controlled values, breaking security assumptions in authentication checks, template rendering, and option-handling code paths.

Root Cause

The root cause is improper control of object prototype attributes [CWE-1321]. The devalue.parse routine treats __proto__ as an ordinary property key and accepts non-numeric indices, violating the safe-deserialization contract expected of a utility that consumes untrusted serialized data.

Attack Vector

Exploitation requires the application to call devalue.parse on attacker-controlled input. This commonly occurs in SvelteKit form actions, API endpoints, or message channels where serialized state crosses a trust boundary. No authentication or user interaction is required when the vulnerable endpoint is exposed to the network. The vulnerability is described in detail in the GitHub Security Advisory GHSA-vj54-72f3-p5jv and the upstream fix commit.

Detection Methods for CVE-2025-57820

Indicators of Compromise

  • Inbound request payloads containing the literal string __proto__, prototype, or constructor directed at endpoints that invoke devalue.parse.
  • Application errors referencing unexpected properties on built-in objects, such as Object.prototype returning attacker-defined values.
  • Anomalous changes in application behavior immediately following deserialization of external payloads.

Detection Strategies

  • Inventory project dependencies and flag installations of devalue below version 5.3.2 using npm ls devalue or software composition analysis tooling.
  • Add web application firewall or reverse proxy rules that inspect request bodies for __proto__ keys submitted to deserialization endpoints.
  • Enable runtime application self-protection or Node.js policy checks that monitor writes to Object.prototype.

Monitoring Recommendations

  • Log all calls to devalue.parse along with input size and source IP for forensic review.
  • Track outbound dependency advisories from the Svelte project and the GitHub Advisory Database for follow-on fixes.
  • Alert on unexpected modifications to global prototypes in long-running Node.js processes.

How to Mitigate CVE-2025-57820

Immediate Actions Required

  • Upgrade devalue to version 5.3.2 or later in every application and transitive dependency.
  • Audit code paths that pass untrusted input to devalue.parse and reject payloads containing reserved keys before parsing.
  • Rebuild and redeploy SvelteKit applications after the dependency upgrade to ensure the patched version is bundled.

Patch Information

The Svelte maintainers released devalue 5.3.2, which rejects __proto__ keys and validates that indices are numeric during parsing. Review the patch commit 0623a47 for implementation details.

Workarounds

  • Validate and sanitize input before invoking devalue.parse, stripping keys named __proto__, constructor, and prototype.
  • Freeze Object.prototype at application startup with Object.freeze(Object.prototype) where compatible with the runtime.
  • Use Object.create(null) for objects that store user-supplied data to remove the prototype chain from sensitive lookups.
bash
# Upgrade devalue to the patched release
npm install devalue@^5.3.2

# Verify the installed version
npm ls devalue

# Optional runtime hardening in the application entry point
node -e "Object.freeze(Object.prototype); require('./server.js')"

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechSvelte

  • SeverityHIGH

  • CVSS Score7.9

  • EPSS Probability0.13%

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

  • GitHub Security Advisory GHSA-vj54-72f3-p5jv
  • Related CVEs
  • CVE-2026-27125: Svelte SSR Prototype Pollution Vulnerability

  • CVE-2026-27902: Svelte Framework XSS Vulnerability

  • CVE-2026-27901: Svelte Framework XSS Vulnerability

  • CVE-2026-27119: 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