All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API
expr-eval · org.webjars.npm:expr-eval
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| expr-eval |
| No fix yet |
| org.webjars.npm:expr-eval |
| No fix yet |
Original description
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.
From the CVE record · snyk