CVE-2026-12866
All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API.
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | expr-eval | <= 2.0.2 | nicht erfasst |
| maven | org.webjars.npm:expr-eval | <= 2.0.2 | nicht erfasst |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-q9v2-7m5w-4693
- https://nvd.nist.gov/vuln/detail/CVE-2026-12866
- https://github.com/silentmatt/expr-eval/issues/292
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55