Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M
CVE-2026-52746JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion
High 7.5
In plain English
A high-severity regular-expression denial of service in jsonata from jsonata-js. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | jsonata | 2.2.0 | GHSA-86vw-mfpg-wwv9 |
| npm | jsonata | 1.8.9 | GHSA-86vw-mfpg-wwv9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jsonata-js | jsonata | >= 2.0.0, < 2.2.0< 1.8.9 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9 x_refsource_CONFIRM
- https://github.com/jsonata-js/jsonata/pull/782 x_refsource_MISC
- https://github.com/jsonata-js/jsonata/pull/793 x_refsource_MISC
- https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686 x_refsource_MISC
- https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b x_refsource_MISC
- https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9 x_refsource_MISC
- https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0 x_refsource_MISC