Skip to main content
← All vulnerabilities
CVE-2026-12866GHSA-Q9V2-7M5W-4693

All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API.

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a expr-eval

    All versions

  • n/a org.webjars.npm:expr-eval

    All versions

  • expr-evalnpm

    through 2.0.2

  • org.webjars.npm:expr-evalMaven

    through 2.0.2

References 4

security.snyk.io

GitHub · silentmatt/expr-eval