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.
Published: 2026-07-17
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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. The underlying weakness is a regular‑expression backtracking flaw (CWE‑1333). No code execution or data disclosure occurs, but an attacker can interrupt service availability by sending crafted expressions.

Affected Systems

The vulnerable component is the JSONata query language (jsonata-js:jsonata). Versions prior to 2.2.0 are affected; upgrading to v2.2.0 or later removes the problematic regex. All users of JSONata in that version range should update or otherwise restrict the use of $toMillis.

Risk and Exploitability

The CVSS score of 7.5 ranks this as a high‑severity vulnerability. An EPSS score of less than 1% indicates a low likelihood of exploitation at the time of analysis, and it is not listed in the CISA KEV catalog. The attack vector is likely to be an application that accepts arbitrary JSONata expressions from users, such that an attacker can supply a crafted expression that triggers the backtracking. While the probability of use is low, the impact on availability warrants prompt action.

Generated by OpenCVE AI on August 4, 2026 at 18:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade JSONata to version 2.2.0 or newer, which replaces the vulnerable regex with a safer implementation.
  • If immediate upgrade is not possible, enforce limits on expression length or complexity, and apply a timeout to the expression evaluation to contain resource usage.
  • As a temporary workaround, validate or sanitize inputs to reject patterns that will trigger the $toMillis backtracking, or replace the $toMillis call with a custom conversion routine that does not rely on backtracking regexes.

Generated by OpenCVE AI on August 4, 2026 at 18:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-86vw-mfpg-wwv9 jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion
History

Mon, 03 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description JSONata is a JSON query and transformation language. Prior to 2.2.0, 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. 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.
References

Fri, 17 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Jsonata-js
Jsonata-js jsonata
Vendors & Products Jsonata-js
Jsonata-js jsonata

Fri, 17 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
Description JSONata is a JSON query and transformation language. Prior to 2.2.0, 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.
Title JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Jsonata-js Jsonata
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-03T20:50:28.984Z

Reserved: 2026-06-08T14:00:43.573Z

Link: CVE-2026-52746

cve-icon Vulnrichment

Updated: 2026-07-17T19:44:43.837Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T18:30:12Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity