jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion (CVE-2026-52746)
A vulnerability in the jsonata library's $toMillis function allows crafted inputs to cause excessive regex backtracking, leading to denial of service. This affects versions prior to 2.2.0 and 1.8.9. The issue is fixed in jsonata 2.2.0 and 1.8.9. The vulnerability has a high severity score of 7.5 CVSS 3.1 and does not impact confidentiality or integrity but causes availability disruption.
AI Analysis
Technical Summary
Before jsonata versions 2.2.0 and 1.8.9, the $toMillis function's ISO-8601 validation regex can be exploited with maliciously crafted non-matching inputs to trigger superlinear backtracking. This results in resource exhaustion and potential denial of service in applications evaluating user-provided JSONata expressions. The issue is tracked as CVE-2026-52746 and has been addressed by patches included in jsonata 2.2.0 and 1.8.9. The vulnerability is classified under CWE-1333 and has a CVSS v3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
Potential Impact
The vulnerability allows denial of service through resource exhaustion caused by excessive regex backtracking when processing crafted inputs to the $toMillis function. There is no impact on confidentiality or integrity, but availability of applications evaluating user-provided JSONata expressions can be disrupted.
Mitigation Recommendations
A fix is available in jsonata versions 2.2.0 and 1.8.9 or later. Applications that evaluate user-provided JSONata expressions should update to these versions as soon as possible to prevent exploitation.
jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion (CVE-2026-52746)
Description
A vulnerability in the jsonata library's $toMillis function allows crafted inputs to cause excessive regex backtracking, leading to denial of service. This affects versions prior to 2.2.0 and 1.8.9. The issue is fixed in jsonata 2.2.0 and 1.8.9. The vulnerability has a high severity score of 7.5 CVSS 3.1 and does not impact confidentiality or integrity but causes availability disruption.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Before jsonata versions 2.2.0 and 1.8.9, the $toMillis function's ISO-8601 validation regex can be exploited with maliciously crafted non-matching inputs to trigger superlinear backtracking. This results in resource exhaustion and potential denial of service in applications evaluating user-provided JSONata expressions. The issue is tracked as CVE-2026-52746 and has been addressed by patches included in jsonata 2.2.0 and 1.8.9. The vulnerability is classified under CWE-1333 and has a CVSS v3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
Potential Impact
The vulnerability allows denial of service through resource exhaustion caused by excessive regex backtracking when processing crafted inputs to the $toMillis function. There is no impact on confidentiality or integrity, but availability of applications evaluating user-provided JSONata expressions can be disrupted.
Mitigation Recommendations
A fix is available in jsonata versions 2.2.0 and 1.8.9 or later. Applications that evaluate user-provided JSONata expressions should update to these versions as soon as possible to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-86vw-mfpg-wwv9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52746"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a46ecb527e9c7971943c8a1
Added to database: 07/02/2026, 22:56:53 UTC
Last enriched: 08/03/2026, 21:42:07 UTC
Last updated: 09/12/2026, 22:01:34 UTC
Views: 113
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.