Skip to content

CVE-2026-52746 JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion

HighCVSS 7.5 EPSS 0.69%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
jsonata < 2.2.0 2.2.0 Fixed
npm jsonata(npm) < 1.8.9; >= 2.0.0, < 2.2.0 1.8.9, 2.2.0 Fixed
jsonata-js jsonata = < 1.8.9; = >= 2.0.0, < 2.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
jsonata-js jsonata = >= 2.0.0, < 2.2.0 No fix listed
jsonata-js jsonata = < 1.8.9 No fix listed
npm jsonata(npm) >= 2.0.0, < 2.2.0 2.2.0
npm jsonata(npm) < 1.8.9 1.8.9
jsonata < 2.2.0 2.2.0

References