Intel

AIKIDO-2026-10996

jsonata is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS)GHSA-86vw-mfpg-wwv9 Published 4 days ago

75

High Risk

This Affects:

JSjsonata
0.0.1 - 2.1.1
Fixed in 2.2.0
Are you affected? Scan for Free

TL;DR

The JSONata $toMillis function used an inefficient ISO 8601 validation regular expression. Before the fix, applications that evaluated user-provided JSONata expressions could spend excessive CPU processing crafted date strings, causing resource exhaustion and denial of service. Version 2.2.0 tightens the regex structure to avoid inefficient backtracking.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

jsonata is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 2.1.1.

How to fix this

Upgrade the jsonata library to the patch version.