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

CVE-2025-13204: expr-eval JavaScript RCE Vulnerability

CVE-2025-13204 is a prototype pollution vulnerability in the expr-eval npm package that enables remote code execution through JavaScript's prototype-based inheritance model. This article covers technical details, impact, and mitigation.

Published: April 21, 2026

CVE-2025-13204 Overview

The npm package expr-eval is vulnerable to Prototype Pollution, a critical class of vulnerability affecting JavaScript applications. An attacker with access to the expression evaluation interface can exploit JavaScript's prototype-based inheritance model to achieve arbitrary code execution. This vulnerability affects the Silentmatt JavaScript Expression Evaluator library, commonly used for parsing and evaluating mathematical expressions in Node.js applications.

Critical Impact

Attackers can exploit prototype pollution to modify object prototypes, potentially leading to arbitrary code execution, denial of service, or security control bypass in applications using the vulnerable expr-eval package.

Affected Products

  • silentmatt javascript_expression_evaluator (Node.js package)
  • Applications using the expr-eval npm package
  • Web applications and backend services implementing expression evaluation using this library

Discovery Timeline

  • 2025-11-14 - CVE-2025-13204 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-13204

Vulnerability Analysis

This vulnerability (CWE-1321: Improper Neutralization of Special Elements in Data Query Logic) exists due to insufficient input validation in the expr-eval library's expression parsing functionality. Prototype Pollution occurs when an attacker can inject properties into JavaScript's base Object.prototype, which then propagates to all objects in the application. In the context of expr-eval, this allows attackers to manipulate the expression evaluator to execute arbitrary code by polluting object prototypes during expression parsing.

The vulnerability is exploitable via network-accessible interfaces where the library processes user-controlled input. No authentication is required to exploit this vulnerability, and it can affect the confidentiality, integrity, and availability of affected systems.

Root Cause

The root cause lies in the expr-eval library's failure to properly sanitize user-supplied expressions before evaluation. When parsing expressions, the library does not adequately prevent access to or modification of __proto__, constructor, or prototype properties. This allows malicious expressions to traverse the prototype chain and modify base object prototypes, affecting all JavaScript objects in the application context.

Attack Vector

The attack vector is network-based, requiring no user interaction or special privileges. An attacker can craft malicious expressions containing prototype-polluting payloads and submit them to any application endpoint that uses expr-eval to process user input. The exploitation path typically involves:

  1. Identifying an application using expr-eval for expression evaluation
  2. Crafting a malicious expression that accesses prototype properties
  3. Submitting the payload through the expression evaluation interface
  4. The polluted prototype affecting subsequent application behavior, potentially enabling code execution

The vulnerability has been demonstrated in CTF competitions, with a solver script available on GitHub showing exploitation techniques. Technical details can also be found in the Huntr.dev bug bounty report.

Detection Methods for CVE-2025-13204

Indicators of Compromise

  • Unusual expressions containing __proto__, constructor.prototype, or prototype strings in application logs
  • Unexpected modifications to global object properties in Node.js applications
  • Application behavior changes indicating prototype chain manipulation
  • Error messages related to unexpected property access or type confusion

Detection Strategies

  • Implement input validation logging to capture expressions containing prototype-related keywords such as __proto__, constructor, and prototype
  • Deploy application-level monitoring to detect anomalous expression patterns submitted to evaluation endpoints
  • Use Software Composition Analysis (SCA) tools to identify applications with vulnerable expr-eval versions in the dependency tree
  • Monitor for runtime modifications to Object.prototype or other base prototypes in Node.js applications

Monitoring Recommendations

  • Enable verbose logging for all expression evaluation operations to capture potential exploitation attempts
  • Implement rate limiting on expression evaluation endpoints to slow down brute-force prototype pollution attempts
  • Set up alerts for dependency vulnerabilities in CI/CD pipelines to catch vulnerable expr-eval installations
  • Monitor application memory and behavior for signs of prototype pollution exploitation

How to Mitigate CVE-2025-13204

Immediate Actions Required

  • Audit your application dependencies for the presence of the expr-eval npm package using npm audit or yarn audit
  • Replace the vulnerable expr-eval package with the patched fork expr-eval-fork
  • If immediate replacement is not possible, implement input validation to reject expressions containing __proto__, constructor, or prototype strings
  • Review application logs for any evidence of exploitation attempts

Patch Information

The original expr-eval package maintainers have addressed this issue through a pull request on GitHub. Users should either update to a patched version once merged or migrate to the expr-eval-fork package which resolves this vulnerability. The fork is available on npm and can be installed as a drop-in replacement for the vulnerable package.

Workarounds

  • Implement a wrapper function that sanitizes expressions before passing them to expr-eval, blocking any input containing prototype-related keywords
  • Use Object.freeze(Object.prototype) as a defense-in-depth measure to prevent prototype modifications at runtime
  • Isolate expression evaluation in a sandboxed environment or separate process with limited privileges
  • Consider implementing a whitelist-based approach for allowed expression syntax rather than blacklisting dangerous patterns
bash
# Replace vulnerable package with patched fork
npm uninstall expr-eval
npm install expr-eval-fork

# Audit your dependencies for vulnerabilities
npm audit

# Verify the replacement
npm list expr-eval expr-eval-fork

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSilentmatt Javascript Expression Evaluator

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub CTF Solver Script

  • GitHub expr-eval Library

  • GitHub expr-eval Library

  • GitHub expr-eval Script

  • Huntr.dev NPM Bounty

  • NPM Package expr-eval-fork
  • Vendor Resources
  • GitHub Pull Request Files
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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