Vulnerability library
Security checkAugust 03, 2026

jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion

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.9, it is possible to craft non-matching inputs to the $toMillis function that cause superlinear backtracking in the ISO-8601 validation regex. This may lead to denial of service in applications that evaluate user-provided JSONata expressions.

Recommendation

Update the jsonata package to the latest compatible version. Followings are version details:

  • Affected version(s): **< 1.8.9 >= 2.0.0, < 2.2.0**
  • Patched version(s): **1.8.9 2.2.0**

References

Could your website be exposed too?

SmartScanner can check your website for jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion and gives you actionable findings to investigate.

Start a free scan

Related Issues

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