CVE-2025-12735
The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical…
Severity by source
Trivy's own label is CRITICAL. Rated critical by Red Hat. Rated lower by GHSA (high).
Description
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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| chainguard | kibana-8.19, kibana-9.0, kibana-9.2 | 8.19.15-r0 and 2 more |
| minimos | kibana-8.19, kibana-9.2 | 8.19.15-r0 and 1 more |
| npm::GitHub Security Advisory npm | expr-eval, expr-eval-fork | 3.0.1 |
Show all 7 entries from 3 sources
| Source | Package | Fixed in |
|---|---|---|
| chainguard | kibana-8.19 | 8.19.15-r0 |
| chainguard | kibana-9.0 | 9.0.8-r32 |
| chainguard | kibana-9.2 | 9.2.5-r0 |
| minimos | kibana-8.19 | 8.19.15-r0 |
| minimos | kibana-9.2 | 9.2.5-r0 |
| npm::GitHub Security Advisory npm | expr-eval | no fix listed |
| npm::GitHub Security Advisory npm | expr-eval-fork | 3.0.1 |
References
- https://access.redhat.com/security/cve/CVE-2025-12735
- https://github.com/advisories/GHSA-jc85-fpwf-qm7x
- https://github.com/jorenbroekema/expr-eval
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
- https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43
- https://github.com/silentmatt/expr-eval
- https://github.com/silentmatt/expr-eval/pull/288
- https://github.com/silentmatt/expr-eval/pull/289