Description
Before JSONata 2.2.0 and 1.8.8 it was possible to execute arbitrary code with crafted expressions, due to a missing hasOwnProperty check in the lookup function: https://github.com/jsonata-js/jsonata/blob/f9632e01e6e67d4f9f00593f9795420cb4b57f48/src/functions.js#L1686-L1705
This was fixed with https://github.
Recommendation
Update the jsonata package to the latest compatible version. Followings are version details:
Affected version(s): **>= 2.0.0, < 2.2.0 <= 1.8.7** Patched version(s): **2.2.0 1.8.8**
References
Could your website be exposed too?
SmartScanner can check your website for JSONata: Arbitrary Code Execution via crafted JSONata expressions and gives you actionable findings to investigate.
Start a free scanRelated Issues
- JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions - CVE-2026-77415
- JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions - jsonata - CVE-2026-77414
- Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader - CVE-2026-53597
- HAX CMS: Stored XSS via '<video-player>' component allows arbitrary JavaScript execution and token theft - CVE-2026-46496


