Vulnerability library
Security checkAugust 21, 2026

JSONata: Arbitrary Code Execution via crafted JSONata expressions

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmjsonata

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated August 21, 2026