Skip to main content

expr-eval CVE-2025-13204

CRITICAL
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2025-11-14 cret@cert.org
9.8
CVSS 3.1 · Vendor: cert
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach expr-eval evaluate interface with untrusted input
  2. Exploit
    Submit expression referencing __proto__/constructor
  3. Execution
    Pollute Object.prototype
  4. Impact
    Achieve arbitrary code execution in Node.js process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A03:2021 - Injection
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the host application expose expr-eval's expression evaluation (the Parser/evaluate 'eval interface') to attacker-controlled input - the description explicitly states 'an attacker with access to express eval interface.' The concrete trigger, per the PR #252 diff, is an expression whose token value matches __proto__, prototype, or constructor, which the unpatched evaluator processes against JavaScript's prototype-based inheritance. LIMITING FACTORS: the vulnerability is not reachable unless untrusted expressions are passed to the evaluator; applications that only evaluate trusted/static expressions are not exposed. The fix (PR #252 / expr-eval-fork) blocks these identifiers, so updating to the patched code or switching to expr-eval-fork removes the condition; the available sources present updating as the resolution.

Impact

Signals conflict in a way that matters for prioritization. The NVD CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8) and the vuln.today 'act_now' decision label both argue for urgent remediation, and the impact is severe: prototype pollution in a JavaScript expression evaluator escalating to arbitrary code execution. However, the EPSS score is only 0.03% (10th percentile), and the vulnerability is NOT in CISA KEV, so there is no evidence of active or widespread exploitation. The POC is a reference only (huntr bounty report plus CTF solver scripts) and is not verified as working exploit code. The high CVSS is also conditional: the flaw is only reachable when an application passes attacker-controlled strings into expr-eval's evaluation interface - the CVSS PR:N/UI:N assumes untrusted input reaches the parser, which is a property of the host application, not the library in isolation. Net: treat as a high-priority patch for any service that evaluates untrusted expressions (consistent with 'act_now'), but the low EPSS and absence of KEV indicate this is not currently seeing broad opportunistic exploitation - real risk is concentrated in applications that actually expose the eval interface to untrusted input.

Exploit ScenarioDerived

An application uses expr-eval to evaluate user-supplied mathematical or logical expressions (e.g., a calculator API, rule engine, or formula field). An attacker submits an expression crafted to walk the prototype chain via __proto__/constructor, polluting Object.prototype and ultimately achieving arbitrary code execution in the Node.js process. A public PoC reference exists (huntr bounty and CTF solver scripts) but is not verified as working exploit code; the CVSS AV:N/AC:L indicates the attack is network-reachable and low-complexity once the eval interface accepts untrusted input.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 30, 2026

Prototype pollution in the expr-eval npm package (JavaScript Expression Evaluator) can let attackers who can pass attacker-controlled expressions into the evaluator reach JavaScript's prototype chain and, in a Node.js context, potentially achieve arbitrary code execution. The issue affects deployments that expose the Parser/evaluate eval interface to untrusted input; applications that only evaluate trusted or static expressions are not exposed. CVSS is 9.8 with a PR:N network vector, EPSS is 0.03% (10th percentile), and a public PoC reference exists but is not verified as working exploit code; the supplied priority is act_now, while the sources point to PR #252 and the expr-eval-fork package as the resolution.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:22 CVSS 7.3

npm package expr-eval is vulnerable to Prototype Pollution. Rated high severity (CVSS 7.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.

RemediationAI

Upgrade to a build containing the upstream fix from PR #252 (https://github.com/silentmatt/expr-eval/pull/252/files) or switch to the expr-eval-fork package (https://www.npmjs.com/package/expr-eval-fork), which the sources identify as resolving the issue; the supplied data does not give an exact patched expr-eval version number, so confirm the fixed release before deployment. The Red Hat advisory at https://access.redhat.com/errata/RHSA-2026:0140 may provide vendor-specific fixed packages where applicable. If updating cannot be done immediately, the control indicated by the trigger is to keep attacker-controlled expressions away from the evaluator-only evaluate trusted or static expressions-or filter expressions containing __proto__, prototype, or constructor; both approaches can break legitimate use of those identifiers and are compensating controls, not a substitute for the patch. The sources present updating to the patched code or fork as the resolution.

Affected Packages

npm expr-eval no fix
npm expr-eval-fork fix: 2.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

expr-eval is a JavaScript expression parser/evaluator used in Node.js; CPE cpe:2.3:a:silentmatt:javascript_expression_evaluator:*:*:*:*:node.js:*:* identifies the affected silentmatt package. The root cause is CWE-1321 (improper control of object prototype modification): when the evaluator processes expression tokens, it can encounter identifiers such as __proto__, prototype, or constructor and interact with JavaScript's prototype-based inheritance in a way that permits prototype pollution and, depending on the host application, arbitrary code execution. The PR #252 diff shows the upstream fix in src/evaluate.js adding a regex check that throws 'prototype access detected' for token values matching ^__proto__|prototype|constructor$, confirming the specific identifiers that trigger the protection. Reachability is not universal: the flaw requires the host application to expose expr-eval's evaluation interface to attacker-controlled expressions; applications evaluating only trusted or static expressions are not exposed, and the sources do not describe a trigger beyond the eval-interface prerequisite and the blocked prototype-related token values.

Know when Prototype Pollution gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (cert) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Library reachable over the network via an app's eval interface with no auth or interaction once untrusted input is accepted; prototype-pollution-to-RCE yields full C/I/A impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.3 HIGH

Primary rating from Vendor (cert).

CVSS VectorVendor: cert

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Oct 30, 2026 - 19:28 vuln.today
v2 - CVSS changed
Severity Changed
Oct 30, 2026 - 19:22 NVD
HIGH CRITICAL
CVSS changed
Oct 30, 2026 - 19:22 NVD
7.3 (HIGH) 9.8 (CRITICAL)
Patch released
Mar 28, 2026 - 19:22 nvd
Patch available
PoC Detected
Jan 08, 2026 - 18:28 vuln.today
Public exploit code
CVE Published
Nov 14, 2025 - 17:16 nvd
HIGH 7.3

DescriptionCVE.org

npm package expr-eval is vulnerable to Prototype Pollution. An attacker with access to express eval interface can use JavaScript prototype-based inheritance model to achieve arbitrary code execution. The npm expr-eval-fork package resolves this issue.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2,328 npm packages depend on expr-eval (283 direct, 2,049 indirect)

Ecosystem-wide dependent count for version 2.0.2.

Executive ViewAI

Why It Matters

The expr-eval npm package contains a critical prototype pollution vulnerability (CVE-2025-13204) that could allow attackers to execute arbitrary code in Node.js environments. This primarily affects any product or service that evaluates user-supplied expressions using this library, potentially leading to full system compromise. Leadership should prioritize remediation because exploitation could result in data breaches, service disruption, and reputational damage, though no active exploitation has been confirmed yet.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Medium
common npm expression-parser library, but used in specific apps not everywhere
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:silentmatt:javascript_expression_evaluator:*:*:*:*:*:node.js:*:*
CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy