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 package | Versions | Reported by |
|---|---|---|
| jsonata-js jsonata | >= 2.0.0, < 2.2.0, < 1.8.9 | CVE List |
| jsonata (npm) | from 2.0.0 before 2.2.0, before 1.8.9 | GitHub Advisory Database |
| jsonata jsonata | before 2.2.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9 | patch, vendor-advisory, web | |
| https://github.com/jsonata-js/jsonata/pull/782 | issue-tracking, patch, web | |
| https://github.com/jsonata-js/jsonata/pull/793 | issue-tracking, patch, web | |
| https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686 | patch, web | |
| https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b | patch, web | |
| https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9 | web | |
| https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-52746 | advisory | |
| https://github.com/jsonata-js/jsonata | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-52746 changed 2026-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-86vw-mfpg-wwv9 changed 2026-08-03 | CC-BY-4.0 |
| NVD | CVE-2026-52746 changed 2026-10-24 | Public domain |