Description
Before JSONata 2.2.0 and 1.8.9, it is possible to craft non-matching inputs to the $toMillis function that cause superlinear backtracking in the ISO-8601 validation regex. This may lead to denial of service in applications that evaluate user-provided JSONata expressions.
Recommendation
Update the jsonata package to the latest compatible version. Followings are version details:
Affected version(s): **< 1.8.9 >= 2.0.0, < 2.2.0** Patched version(s): **1.8.9 2.2.0**
References
Could your website be exposed too?
SmartScanner can check your website for jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion and gives you actionable findings to investigate.
Start a free scanRelated Issues
- @anephenix/hub: Unauthenticated WebSocket RPC Waiter Resource Exhaustion - CVE-2026-73561
- Axios: Deep formToJSON Key Recursion Can Cause Denial of Service - CVE-2026-67312
- node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion - CVE-2026-68904
- Axios: Excessive recursion in formDataToJSON can cause denial of service - CVE-2026-67313


