Severity by source
Sources disagree (Low–Critical)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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable API with no auth or interaction once the app exposes toJSFunction() to user input; full RCE yields high C/I/A within the same process scope.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: snyk
Lifecycle Timeline
2DescriptionCVE.org
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.
AnalysisAI
Arbitrary JavaScript code execution in the expr-eval npm package affects all released versions when applications pass user-controlled expressions to the toJSFunction() API, which compiles them via new Function() and executes them in the host process context. Snyk discloses no public exploit identified at time of analysis, but the trivial attack pattern (sandbox escape via crafted math expressions) and CVSS 4.0 score of 9.2 make this a high-priority issue for any Node.js or browser application that exposes expr-eval to untrusted input.
Technical ContextAI
expr-eval is a JavaScript expression parser/evaluator originally written by silentmatt, commonly embedded in Node.js services, dashboards, and rules engines to let users supply mathematical or logical formulas. The vulnerable toJSFunction() helper takes the parsed AST and concatenates it into a JavaScript source string that is then handed to the built-in Function constructor, which is functionally equivalent to eval(). This is a textbook CWE-94 (Improper Control of Generation of Code) flaw: the library's tokenizer was designed to restrict syntax to expression-language operators, but because the final compilation step reaches the full JavaScript runtime, any payload that survives the tokenizer (or abuses operator/identifier handling in expression.js around line 55) escapes the intended sandbox and runs with the privileges of the host process.
RemediationAI
No vendor-released patch identified at time of analysis - the linked GitHub issue (#292) and the Snyk advisory do not cite a fixed version, so consumers should treat this as unpatched and act at the application layer. The most reliable compensating control is to stop calling toJSFunction() entirely and use Expression.evaluate() with a constrained variable scope, accepting the performance trade-off of interpreted rather than compiled evaluation. If toJSFunction() must remain, restrict its inputs to expressions authored by trusted operators (never end users), enforce a strict allowlist of identifiers and operators before parsing, and run the evaluator inside an isolated context such as vm2's successor isolated-vm or a separate Worker with no access to require, process, or globalThis; note that isolated-vm adds deployment complexity and Workers still share Node primitives unless explicitly stripped. Consider migrating to maintained alternatives such as mathjs (with its evaluate() in a scoped object) or filtrex, both of which avoid new Function() on user input.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
Same weakness CWE-94 – Code Injection
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-38415
GHSA-q9v2-7m5w-4693