CVE-2026-52746: jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion
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.
Published Jul 2, 2026 · Updated Aug 3, 2026
Affected packages
jsonata
- Ecosystem
- npm
- Affected
- >= 2.0.0, < 2.2.0
- Fixed in
- 2.2.0
- Check
npm ls jsonata
jsonata
- Ecosystem
- npm
- Affected
- < 1.8.9
- Fixed in
- 1.8.9
- Check
npm ls jsonata
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to peaktwilight, mattbaileyuk, vadym-khodak.
References
- https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9
- https://github.com/jsonata-js/jsonata/pull/782
- https://github.com/jsonata-js/jsonata/pull/793
- https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686
- https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b
- https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-52746
- https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9
- https://github.com/advisories/GHSA-86vw-mfpg-wwv9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-77413
JSONata: Arbitrary Code Execution via crafted JSONata expressions
critical9.3Aug 21, 2026CVE-2026-77414
JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions
critical9.3Aug 21, 2026CVE-2026-77415
JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions
critical9.3Aug 21, 2026CVE-2026-12208
jsonata: Function Binding Prototype Pollution via hasOwnProperty Override
medium5.3Jun 15, 2026CVE-2024-27307
JSONata expression can pollute the "Object" prototype
critical9.8Mar 4, 2024
