VULNERABILITY INTELLIGENCE

CVE-2026-12866

CVSS score9.8 CRITICAL
EPSS probability0.87%
CISA KEVNot currently listed
Published2026-06-23
Last modified2026-07-07
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Weakness classification

  • report@snyk.io: CWE-94
  • 134c704f-9b21-4f2e-91b3-4a467353bcc0: CWE-94

Primary references