CVE-2026-12866 PUBLISHED

Assigner: snyk
Reserved: 22.06.2026 Published: 23.06.2026 Updated: 23.06.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 9.2

Product Status

Vendor n/a
Product expr-eval
Versions
  • affected from 0 to * (excl.)

Credits

  • Dinh Twan Doan

References

Problem Types

  • Code Execution