jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion (CVE-2026-52746)
A denial of service vulnerability exists in JSONata versions prior to 2.2.0 where crafted inputs to the $toMillis function cause excessive backtracking in the ISO-8601 validation regex. This can lead to resource exhaustion in applications evaluating user-provided JSONata expressions. The issue is fixed in version 2.2.0 and later.
AI Analysis
Technical Summary
In JSONata versions before 2.2.0, the $toMillis function's ISO-8601 validation regex can be triggered by maliciously crafted inputs that cause superlinear backtracking, resulting in resource exhaustion and denial of service. This vulnerability (CVE-2026-52746) affects applications that evaluate user-supplied JSONata expressions. The problem has been resolved in JSONata version 2.2.0 through patches that address the regex inefficiency.
Potential Impact
Applications using JSONata versions earlier than 2.2.0 that evaluate user-provided expressions are susceptible to denial of service due to resource exhaustion caused by crafted inputs to the $toMillis function. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Update JSONata to version 2.2.0 or later to remediate this vulnerability. This update includes fixes that prevent superlinear regex backtracking in the $toMillis function. No other mitigation is required if the update is applied.
jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion (CVE-2026-52746)
Description
A denial of service vulnerability exists in JSONata versions prior to 2.2.0 where crafted inputs to the $toMillis function cause excessive backtracking in the ISO-8601 validation regex. This can lead to resource exhaustion in applications evaluating user-provided JSONata expressions. The issue is fixed in version 2.2.0 and later.
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
In JSONata versions before 2.2.0, the $toMillis function's ISO-8601 validation regex can be triggered by maliciously crafted inputs that cause superlinear backtracking, resulting in resource exhaustion and denial of service. This vulnerability (CVE-2026-52746) affects applications that evaluate user-supplied JSONata expressions. The problem has been resolved in JSONata version 2.2.0 through patches that address the regex inefficiency.
Potential Impact
Applications using JSONata versions earlier than 2.2.0 that evaluate user-provided expressions are susceptible to denial of service due to resource exhaustion caused by crafted inputs to the $toMillis function. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Update JSONata to version 2.2.0 or later to remediate this vulnerability. This update includes fixes that prevent superlinear regex backtracking in the $toMillis function. No other mitigation is required if the update is applied.
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: 07/18/2026, 11:19:15 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 63
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.