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

Published Jul 2, 2026
·
Updated

Impact In JSONata <v2.2.0, 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.

Patches This issue has been addressed in JSONata version >= 2.2.0 via fixes that include https://github.com/jsonata-js/jsonata/pull/782 and https://github.com/jsonata-js/jsonata/pull/793. Applications that evaluate user-provided expressions should update ASAP to prevent exploitation.

References https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0

Credit Thank you to Doruk Tan Öztürk for disclosing this issue.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/jsonata<2.2.0
2.2.0
JSONata JSONata<2.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/jsonata to a version that resolves this vulnerability.

    Fixed in 2.2.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.8.9

Event History

Jul 2, 2026
Advisory Published
via GitHub·08:13 PM
Data Sourced
via GitHub·08:13 PM
DescriptionSeverityWeaknessAffected Software
Jul 17, 2026
CVE Published
via MITRE·06:32 PM
Data Sourced
via MITRE·06:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-52746?

The severity of CVE-2026-52746 is high, with a score of 7.5.

2

What is the impact of CVE-2026-52746?

CVE-2026-52746 can cause a denial of service due to superlinear backtracking in the ISO-8601 validation regex.

3

How do I fix CVE-2026-52746?

To fix CVE-2026-52746, you should upgrade to JSONata version 2.2.0 or later.

4

Which software is affected by CVE-2026-52746?

CVE-2026-52746 affects the npm/jsonata software library.

5

What causes the vulnerability in CVE-2026-52746?

CVE-2026-52746 is caused by non-matching inputs to the $toMillis function that lead to inefficient regex processing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203