JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jsonata-js | jsonata | 2.0.0 to before 2.2.0; before 1.8.9 | 2.2.0, 1.8.9 | Patch available | CNA |
| — | jsonata (npm) | 2.0.0 to before 2.2.0 | 2.2.0 | Patch available | GHSA-86vw-mfpg-wwv9 |
| — | jsonata (npm) | before 1.8.9 | 1.8.9 | Patch available | GHSA-86vw-mfpg-wwv9 |
- jsonata Vendorjsonata-js Affected 2.0.0 to before 2.2.0; before 1.8.9 Fixed in 2.2.0, 1.8.9 Patch available CNA
- jsonata (npm) Vendor— Affected 2.0.0 to before 2.2.0 Fixed in 2.2.0 Patch available GHSA-86vw-mfpg-wwv9
- jsonata (npm) Vendor— Affected before 1.8.9 Fixed in 1.8.9 Patch available GHSA-86vw-mfpg-wwv9
Remediation
- Fix · CNA jsonata (jsonata-js) Fixed in 2.2.0, 1.8.9
- Fix · GHSA-86vw-mfpg-wwv9 jsonata (npm) Fixed in 2.2.0 Advisory →
- Fix · GHSA-86vw-mfpg-wwv9 jsonata (npm) Fixed in 1.8.9 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-52746
- 2026-10-03 Alias added: GHSA-86vw-mfpg-wwv9
- 2026-11-07 Affected versions changed · Red Hat
- 2026-11-07 CVSS score added · Red Hat
References
Patch 5
- 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
More jsonata-js vulnerabilities
- TI-2026-54005 JSONata: Arbitrary Code Execution via crafted JSONata expressions CVSS 4.0CRITICAL 9.3
- TI-2026-54004 JSONata: Arbitrary Code Execution via crafted JSONata expressions CVSS 4.0CRITICAL 9.3
- TI-2026-54003 JSONata: Arbitrary Code Execution via crafted JSONata expressions CVSS 4.0CRITICAL 9.3
- TI-2026-10500 jsonata-js jsonata Function Binding Frame System jsonata.js createFrame prototype pollution CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-52746 · CVE Program
- CVE-2026-52746 · NVD
- FIRST EPSS
- GHSA-86vw-mfpg-wwv9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-52746 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences