expr-eval @1.2.0
Mathematical expression evaluator
Maintainers
Keywords
Dev Dependencies (11)
| Package | Constraint | Registry Status |
|---|---|---|
| mocha | ^3.5.0 | auto_approved |
| eslint | ^4.5.0 | auto_approved |
| rollup | ^0.50.0 | auto_approved |
| istanbul | ^0.4.5 | No greenflagged match |
| eslint-plugin-node | ^5.1.1 | No greenflagged match |
| eslint-plugin-import | ^2.7.0 | auto_approved |
| rollup-plugin-uglify | ^2.0.1 | auto_approved |
| eslint-plugin-promise | ^3.5.0 | auto_approved |
| eslint-config-standard | ^10.2.1 | auto_approved |
| eslint-plugin-standard | ^3.0.1 | auto_approved |
| eslint-config-semistandard | ^11.0.0 | auto_approved |
Changes from v0.12.0
No metadata changes detected.
File Changes
Risk Dispositions (2 applicable to this version, 0 other)
Accepted rules are downgraded to INFO on future analyses; rejected rules escalate to CRITICAL.
| Rule | Source | Disposition | Author | Reason | |
|---|---|---|---|---|---|
osv:GHSA-jc85-fpwf-qm7x |
osv | reject | AI | AI (osv): Advisory affects all versions <= 2.0.2; fix is in 3.0.1. This generalizes to every 2.x release of this package. | |
osv:GHSA-8gw3-rxh4-v6jx |
osv | reject | AI | AI (osv): Prototype pollution advisory with affected range including <= 2.0.2; generalizes across affected versions. |
SAST Findings (3)
[Always reject] CVSS 7.3 (HIGH) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L npm package `expr-eval` is vulnerable to Prototype Pollution. An attacker with access to express eval interface can use JavaScript prototype-based inheritance model to achieve arbitrary code execution. The npm expr-eval-fork package resolves this issue.
[Always reject] The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 83. Findings: 2 critical (+80), 1 low (+3).
Commit: d5cabd941eed Browse source
Published to npm: