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
    • 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-12735

CVE-2025-12735: expr-eval JavaScript Library RCE Flaw

CVE-2025-12735 is a remote code execution vulnerability in the expr-eval JavaScript library caused by insufficient input validation. Attackers can exploit crafted context objects to execute arbitrary code. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: March 11, 2026

CVE-2025-12735 Overview

The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, CVE-2025-12735 exposes a critical code injection vulnerability due to insufficient input validation. An attacker can pass a crafted context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution, completely bypassing the library's intended sandboxing protections.

Critical Impact

This vulnerability allows remote attackers to achieve arbitrary code execution on systems using the affected expr-eval library through crafted context objects, potentially leading to complete system compromise.

Affected Products

  • jorenbroekema javascript_expression_evaluator version 3.0.0
  • silentmatt javascript_expression_evaluator (all versions prior to patch)
  • expr-eval and expr-eval-fork NPM packages

Discovery Timeline

  • November 5, 2025 - CVE-2025-12735 published to NVD
  • February 10, 2026 - Last updated in NVD database

Technical Details for CVE-2025-12735

Vulnerability Analysis

CVE-2025-12735 is classified under CWE-94 (Improper Control of Generation of Code / Code Injection). The expr-eval library is intended to provide a safe way to evaluate mathematical and logical expressions without exposing the full power of JavaScript's eval() function. However, the vulnerability undermines this security design by allowing attackers to escape the expression sandbox.

The core issue lies in how the library handles context objects passed to the evaluate() function. When user-controlled data is passed as part of the evaluation context, the library fails to properly validate and sanitize these inputs. This allows an attacker to craft malicious context objects that, when accessed during expression evaluation, can execute arbitrary JavaScript code outside the intended sandbox.

This vulnerability is particularly dangerous in applications that accept user input for mathematical expression evaluation, such as calculators, spreadsheet applications, data transformation tools, or any system that allows users to define custom formulas.

Root Cause

The root cause stems from insufficient input validation when processing context objects in the evaluate() function. The library trusts that context object properties are safe values (numbers, strings, or simple functions), but fails to account for malicious object members that can leverage JavaScript's dynamic nature to break out of the evaluation sandbox. Property accessors, prototype manipulation, or specially crafted function references within the context can be exploited to achieve code execution.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending a crafted HTTP request or API call to an application that uses expr-eval to process user-provided expressions or context data.

The exploitation flow involves:

  1. Identifying an application endpoint that uses expr-eval for expression evaluation
  2. Crafting a malicious context object containing properties designed to escape the sandbox
  3. Submitting the malicious context along with an expression that accesses the crafted properties
  4. The evaluate() function processes the expression, triggering arbitrary code execution

For detailed technical exploitation information, refer to the GitHub Security Advisory and CERT Vulnerability ID 263614.

Detection Methods for CVE-2025-12735

Indicators of Compromise

  • Unexpected child processes spawned by Node.js applications using expr-eval
  • Anomalous network connections originating from Node.js runtime processes
  • Unusual file system access patterns from applications that should only perform mathematical calculations
  • Error logs showing unexpected property access or function invocations during expression evaluation

Detection Strategies

  • Monitor application logs for unusual expressions containing object member access patterns or prototype references
  • Implement runtime application self-protection (RASP) to detect sandbox escape attempts
  • Use dependency scanning tools to identify vulnerable versions of expr-eval in your projects
  • Deploy web application firewalls (WAF) with rules to detect suspicious expression payloads

Monitoring Recommendations

  • Enable verbose logging for all expr-eval evaluate() function calls, capturing both expressions and context objects
  • Implement anomaly detection for expression complexity and context object structure
  • Monitor for npm audit alerts related to expr-eval packages in CI/CD pipelines
  • Track process behavior for Node.js applications to detect signs of code injection exploitation

How to Mitigate CVE-2025-12735

Immediate Actions Required

  • Audit your codebase for usage of expr-eval or expr-eval-fork NPM packages
  • Review all locations where user input is passed to the evaluate() function, either as expressions or context objects
  • Apply the security patch referenced in GitHub Pull Request #288
  • Consider switching to alternative expression evaluation libraries with stronger sandboxing until patches are fully deployed

Patch Information

Security fixes are being tracked in Pull Request #288 for the silentmatt/expr-eval repository. Organizations should monitor both the silentmatt expr-eval repository and the jorenbroekema expr-eval fork for updated releases containing the security fixes. Review the NPM package page for expr-eval for the latest patched versions.

Workarounds

  • Implement strict input validation on all context objects before passing them to evaluate(), allowing only primitive types (numbers, strings, booleans)
  • Disable or restrict the ability for users to provide custom context objects entirely
  • Run expr-eval in an isolated environment (such as a separate VM or container) to limit the impact of potential exploitation
  • Implement a whitelist of allowed expression patterns and reject any expressions that don't match
bash
# Example: Check for vulnerable expr-eval versions in your project
npm audit | grep -i "expr-eval"

# List all installed expr-eval versions
npm ls expr-eval expr-eval-fork

# Update to patched version when available
npm update expr-eval

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJorenbroekema Javascript Expression Evaluator

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Security Advisory

  • GitHub Repository for expr-eval

  • GitHub Repository for expr-eval

  • CERT Vulnerability ID 263614

  • NPM Package expr-eval

  • NPM Package expr-eval-fork

  • CERT Vulnerability ID 263614

  • GitHub Security Test File
  • Vendor Resources
  • GitHub Pull Request #288
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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