CVE-2026-77414
jsonata: JSONata: Arbitrary Code Execution via crafted JSONata expressions
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA, Red Hat.
Description
JSONata is a JSON query and transformation language. Prior to 1.8.8 and 2.2.1, the src/jsonata.js environment.lookup function used a bypassable hasOwnProperty check. Crafted expressions could use $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, executing arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.1.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | jsonata | 2.2.1, 1.8.8 |
| minimos | node-red-4, node-red-5, uptime-kuma-2.5 | 4.1.14-r0 and 2 more |
Show all 4 entries from 2 sources
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | jsonata | 2.2.1, 1.8.8 |
| minimos | node-red-4 | 4.1.14-r0 |
| minimos | node-red-5 | 5.0.5-r0 |
| minimos | uptime-kuma-2.5 | 2.5.4-r0 |
References
- https://access.redhat.com/security/cve/CVE-2026-77414
- https://github.com/jsonata-js/jsonata
- https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2
- https://github.com/jsonata-js/jsonata/commit/c41ef185136a7b96ca1049c7745a7503b82193de
- https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159
- https://github.com/jsonata-js/jsonata/pull/799
- https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8
- https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1