A regex with catastrophic backtracking hangs the process on a crafted input, causing denial of service.
Upgrade to a version with a linear-time regex or input caps.
Avoid nested quantifiers; bound input length and use a linear-time regex engine where possible.
Stateward flags Inefficient Regular Expression Complexity (ReDoS) in your own code and dependencies on every pull request.
Scan my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.