Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-12866 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-94Improper Control of Generation of Code ('Code Injection')CISA-ADP
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]

Affected Products

ProductVersions
expr-eval
< 1.0.0 (semver)

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • Workaround:low effort

    Avoid using the `toJSFunction()` API with untrusted user input or attacker-controlled variables.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-12866
NVD Published Date:
Jun 23, 2026
NVD Last Modified:
Jul 7, 2026
Source:
[email protected]