Skip to content
OpenAdvisories
High · 7.5 CVE-2026-52746 EUVD-2026-45253GHSA-86vw-mfpg-wwv9

JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion

Published Jul 17, 2026 · Updated Aug 3, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
jsonata-js jsonata >= 2.0.0, < 2.2.0, < 1.8.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm jsonata >= 2.0.0, < 2.2.0 2.2.0 GHSA-86vw-mfpg-wwv9
npm jsonata < 1.8.9 1.8.9 GHSA-86vw-mfpg-wwv9

References