expr-eval @2.0.2
Mathematical expression evaluator
Maintainers
Keywords
Dev Dependencies (11)
| Package | Constraint | Registry Status |
|---|---|---|
| nyc | ^14.1.1 | auto_approved |
| mocha | ^6.2.0 | auto_approved |
| eslint | ^6.3.0 | auto_approved |
| rollup | ^1.20.3 | auto_approved |
| eslint-plugin-node | ^9.2.0 | No greenflagged match |
| eslint-plugin-import | ^2.15.0 | auto_approved |
| rollup-plugin-uglify | ^6.0.3 | auto_approved |
| eslint-plugin-promise | ^4.0.1 | auto_approved |
| eslint-config-standard | ^13.0.1 | auto_approved |
| eslint-plugin-standard | ^4.0.0 | auto_approved |
| eslint-config-semistandard | ^15.0.0 | auto_approved |
Changes from v0.12.0
Dependency Changes
Script Changes
+ watchFile 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)
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.
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: 53. Findings: 2 high (+50), 1 low (+3).
Commit: b4cf0607cc64 Browse source
Published to npm: