What’s Vulnerable › Vulnerabilities

CVE-2026-52746: JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion

Description

JSONata is a JSON query and transformation language. Prior to 2.2.0 and 1.8.9, malicious non-matching inputs to the $toMillis function can cause superlinear backtracking in the ISO-8601 validation regex, leading to denial of service in applications that evaluate user-provided JSONata expressions. This issue is fixed in version 2.2.0 and 1.8.9.

Affected products

How to fix

Upgrade to a fixed version: jsonata-js jsonata 2.2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-52746 or the next vulnerability affects your stack