CVE-2026-12866
expr-eval Code Execution via toJSFunction
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.
INFO
Published Date :
June 23, 2026, 5 a.m.
Last Modified :
June 23, 2026, 5 a.m.
Remotely Exploit :
No
Source :
snyk
Affected Products
The following products are affected by CVE-2026-12866
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Update the expr-eval package to a secure version.
- Avoid compiling untrusted user input directly.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-12866 vulnerability anywhere in the article.