expr-eval CVE-2025-13204
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach expr-eval evaluate interface with untrusted input
-
ExploitSubmit expression referencing __proto__/constructor
-
ExecutionPollute Object.prototype
-
ImpactAchieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (cert).
CVSS VectorVendor: cert
Lifecycle Timeline
6DescriptionCVE.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- 2,328 npm packages depend on expr-eval (283 direct, 2,049 indirect)
Ecosystem-wide dependent count for version 2.0.2.
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB