CVE-2026-52746 JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion
HighCVSS 7.5
EPSS 0.69%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jsonata | < 2.2.0 | 2.2.0 | Fixed |
| npm jsonata(npm) | < 1.8.9; >= 2.0.0, < 2.2.0 | 1.8.9, 2.2.0 | Fixed |
| jsonata-js jsonata | = < 1.8.9; = >= 2.0.0, < 2.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jsonata-js jsonata | = >= 2.0.0, < 2.2.0 | No fix listed |
| jsonata-js jsonata | = < 1.8.9 | No fix listed |
| npm jsonata(npm) | >= 2.0.0, < 2.2.0 | 2.2.0 |
| npm jsonata(npm) | < 1.8.9 | 1.8.9 |
| jsonata | < 2.2.0 | 2.2.0 |
References
- https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9 patch vendor-advisory
- https://github.com/jsonata-js/jsonata/pull/782 issue-tracking patch
- https://github.com/jsonata-js/jsonata/pull/793 issue-tracking patch
- https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686 patch
- https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b patch
- https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9
- https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0 product release-notes
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2501849 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-45253 third-party-advisory