JSONata
JSONata: Arbitrary Code Execution via crafted JSONata expressions
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.3critical · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
jsonata-js jsonata
- < 1.8.8
- >= 2.0.0, < 2.2.1
Fixed in 1.8.8, 2.2.1
Mitigation
Upgrade jsonata to 1.8.8 or 2.2.1 or later.
References
- Vendor advisory github.com/jsonata-js/jsonata/security/advisor…
- Patch github.com/jsonata-js/jsonata/pull/799
- Patch github.com/jsonata-js/jsonata/commit/59e25144f…
2 more
- Release notes github.com/jsonata-js/jsonata/releases/tag/v1.…
- Release notes github.com/jsonata-js/jsonata/releases/tag/v2.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.