CVE-2026-52746
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.37% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-86vw-mfpg-wwv9

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

Product or packageVersionsReported by
jsonata-js jsonata>= 2.0.0, < 2.2.0, < 1.8.9CVE List
jsonata (npm)from 2.0.0 before 2.2.0, before 1.8.9GitHub Advisory Database
jsonata jsonatabefore 2.2.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-1333

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

This issue has been addressed in JSONata version 2.2.0 or later, and 1.8.9 or later on v1, via fixes that include https://github.com/jsonata-js/jsonata/pull/782 and https://github.com/jsonata-js/jsonata/pull/793. Applications that evaluate user-provided expressions should update ASAP to prevent exploitation.

References

https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0 https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9

Credit

Thank you to Doruk Tan Öztürk for disclosing this issue.

NVD (es)

JSONata es un lenguaje de consulta y transformación de JSON. Antes de 2.2.0, entradas maliciosas no coincidentes a la función $toMillis pueden causar un retroceso superlineal en la expresión regular de validación ISO-8601, lo que lleva a una denegación de servicio en aplicaciones que evalúan expresiones JSONata proporcionadas por el usuario. Este problema se ha corregido en la versión 2.2.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-52746 changed 2026-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-86vw-mfpg-wwv9 changed 2026-08-03CC-BY-4.0
NVDCVE-2026-52746 changed 2026-10-24Public domain