Intel

AIKIDO-2025-10628

astro is vulnerable to Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 11, 2025

15

Low Risk

This Affects:

JSastro
4.4.14 - 5.13.5
Fixed in 5.13.6
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the ROUTE_DYNAMIC_SPLIT regex pattern (/[(.+?(.+?)|.+?)]/), which exhibits super-linear time complexity due to nested lazy quantifiers and ambiguous matching paths; an attacker can exploit this by supplying a specially crafted string (e.g., a long sequence of characters followed by mismatched brackets) that forces the regex engine to process an exponential number of backtracking paths, ultimately consuming excessive CPU resources and stalling the application.

Who does this affect?

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

Background info

astro is vulnerable to Inefficient Regular Expression Complexity in versions 4.4.14 - 5.13.5.

How to fix this

Upgrade the astro library to the patch version.