CVE-2026-52746

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

State
Published
Severity
7.5 High
Published
Jul 17, 2026
Updated
Aug 3, 2026
Reserved
Jun 8, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-1333 Inefficient Regular Expression Complexity

Affected Products

ProductVersions
jsonatajsonata-js
  • >= 2.0.0, < 2.2.0Affected
  • < 1.8.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.