Description
Before JSONata 2.2.1 and 1.8.8 it was possible to execute arbitrary code with crafted expressions, due to:
- overwriting
$cloneallowing mutation of objects via transforms (seeevaluateTransformExpression) - it being possible to destruct jsonata functions/lambdas (e.g.
$merge.*) - applyProcedure using
proc.arguments.forEachand not `Array.prototype.
Recommendation
Update the jsonata package to the latest compatible version. Followings are version details:
Affected version(s): **< 1.8.8 >= 2.0.0, < 2.2.1** Patched version(s): **1.8.8 2.2.1**
References
Could your website be exposed too?
SmartScanner can check your website for JSONata vulnerable to 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 - jsonata - CVE-2026-77414
- JSONata: Arbitrary Code Execution via crafted JSONata expressions - CVE-2026-77413
- React Editable Json Tree vulnerable to arbitrary code execution via function parsing - CVE-2022-36010
- Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code - CVE-2023-45133
You might also like:
See something that needs correcting? Let us knowUpdated August 21, 2026


