Vulnerabilities in pkg:maven/org.webjars.npm/expr-eval
PACKAGECVE-2026-12866 is a CRITICAL (CVSS 9.8) expr-eval vulnerable to code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Expr eval libraries in the npm ecosystem. The issue involves expr-eval vulnerable to code execution. Remediation is available in the latest vendor maintenance releases.
pkg:maven/org.webjars.npm/expr-eval
Vulnerability advisories affecting package pkg:maven/org.webjars.npm/expr-eval. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q9v2-7m5w-4693 | CVE-2026-12866 | CRITICAL | expr-eval vulnerable to Code Execution |
CVE-2026-12866 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2026-12866
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
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>expr-eval</artifactId>
<version>Latest secure release</version>
</dependency>
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-2026-12866, 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 the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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-2026-12866 Affected Expr eval Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
expr-eval
|
npm |
≤ 2.0.2
|
|
|
org.webjars.npm:expr-eval
|
Maven |
≤ 2.0.2
|
|
References
Frequently Asked Questions
What is CVE-2026-12866?
Which Expr eval versions are affected?
What version fixes CVE-2026-12866?
Is expr-eval affected?
What is the CVSS score of CVE-2026-12866?
What CWE is associated with CVE-2026-12866?
How can I check npm dependencies for CVE-2026-12866?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q9v2-7m5w-4693",
"modified" : "2026-09-22T14:40:53Z",
"published" : "2026-06-23T06:30:41Z",
"aliases" : [ "CVE-2026-12866" ],
"summary" : "expr-eval vulnerable to Code Execution",
"details" : "All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API. An attacker can execute arbitrary JavaScript by supplying crafted expressions that are compiled into native code using new Function(). Because user-controlled expressions are transformed directly into executable JavaScript, attackers can escape the intended expression sandbox and run arbitrary code within the application's context.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "expr-eval"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars.npm:expr-eval"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-12866"
}, {
"type" : "WEB",
"url" : "https://github.com/silentmatt/expr-eval/issues/292"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silentmatt/expr-eval"
}, {
"type" : "WEB",
"url" : "https://github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-22T14:40:52Z",
"nvd_published_at" : "2026-06-23T05:17:03Z"
}
}