JSONata: Arbitrary Code Execution via crafted JSONata expressions
Critical severity
GitHub Reviewed
Published
Jul 13, 2026
in
jsonata-js/jsonata
•
Updated Aug 21, 2026
Description
Published to the GitHub Advisory Database
Aug 21, 2026
Reviewed
Aug 21, 2026
Last updated
Aug 21, 2026
Impact
Before JSONata
2.2.0and1.8.8it was possible to execute arbitrary code with crafted expressions, due to a missinghasOwnPropertycheck in thelookupfunction:https://github.com/jsonata-js/jsonata/blob/f9632e01e6e67d4f9f00593f9795420cb4b57f48/src/functions.js#L1686-L1705
This was fixed with jsonata-js/jsonata#794, which is included in the
2.2.0release, and ported in the1.8.8release.PoC
References