JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion
Summary
| CVE | CVE-2026-52746 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-17 19:17:16 UTC |
| Updated | 2026-07-17 20:17:25 UTC |
| Description | JSONata is a JSON query and transformation language. Prior to 2.2.0, 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-1333 | CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Jsonata-js | Jsonata | affected < 2.2.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919... | [email protected] | github.com | |
| github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85ce... | [email protected] | github.com | |
| github.com/jsonata-js/jsonata/releases/tag/v2.2.0 | [email protected] | github.com | |
| github.com/jsonata-js/jsonata/pull/793 | [email protected] | github.com | |
| github.com/jsonata-js/jsonata/pull/782 | [email protected] | github.com | |
| github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.