CVE-2025-13204: Expr eval Expr-eval Vulnerable To Prototype Pollution Vulnerability
HIGHCVE-2025-13204 is a HIGH (CVSS 7.3) expr-eval vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Expr eval libraries in the npm ecosystem. The issue involves expr-eval vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 2.0.2.
CVE-2025-13204 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-13204
To remediate this vulnerability, upgrade all affected Expr eval dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install expr-eval@Latest secure release
npm install expr-eval-fork@2.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls expr-eval
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-13204, inspect your project dependencies using npm:
npm ls expr-eval
Analyze the terminal output to locate any version of Expr eval in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2), your application is affected.
Note: The npm ls expr-eval command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Expr eval, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-13204 Affected Expr eval Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
expr-eval
|
npm |
≤ 2.0.2
|
|
|
expr-eval-fork
|
npm |
< 2.0.2
|
2.0.2
|
References
Frequently Asked Questions
What is CVE-2025-13204?
Which Expr eval versions are affected?
What version fixes CVE-2025-13204?
Is expr-eval affected?
Is expr-eval-fork affected?
What is the CVSS score of CVE-2025-13204?
What CWE is associated with CVE-2025-13204?
How can I check npm dependencies for CVE-2025-13204?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8gw3-rxh4-v6jx",
"modified" : "2025-11-17T18:39:19Z",
"published" : "2025-11-14T18:31:39Z",
"aliases" : [ "CVE-2025-13204" ],
"summary" : "expr-eval vulnerable to Prototype Pollution",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "expr-eval"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "expr-eval-fork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13204"
}, {
"type" : "WEB",
"url" : "https://github.com/silentmatt/expr-eval/pull/252/files"
}, {
"type" : "WEB",
"url" : "https://github.com/jorenbroekema/expr-eval/commit/6c475a118643ae0efe012de283e932fb8b74324b"
}, {
"type" : "WEB",
"url" : "https://github.com/silentmatt/expr-eval/commit/6e889e0e75c50ac37d70c35388602025650e0c50"
}, {
"type" : "WEB",
"url" : "https://github.com/SECCON/SECCON2022_final_CTF/blob/main/jeopardy/web/babybox/solver/solver.py"
}, {
"type" : "WEB",
"url" : "https://github.com/jorenbroekema/expr-eval"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silentmatt/expr-eval"
}, {
"type" : "WEB",
"url" : "https://github.com/vladko312/extras/blob/f549d505af300fd74a01b46fab2102990ff1c14d/expr-eval.py"
}, {
"type" : "WEB",
"url" : "https://www.huntr.dev/bounties/1-npm-expr-eval"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/expr-eval-fork"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-17T18:39:19Z",
"nvd_published_at" : "2025-11-14T17:16:01Z"
}
}