MICRO TOOL DECK
FREE
100% Client-Side • Zero Uploads • Free Forever

Regex ReDoS Vulnerability & Backtracking Detector

Analyze regular expressions for catastrophic exponential backtracking (O(2^n)) and safely benchmark evil inputs inside an isolated Web Worker with automatic timeout protection.

Static AST / Pattern Risk Audit

Click Analyze & Stress Test to inspect the pattern.

Sandboxed Worker Timing Curve

Runs increasing input lengths (N = 8..24) in a Web Worker with a 700ms safety kill-switch.

How to Use Regex ReDoS Backtracking Detector

Step 1: Load Input

Enter your JavaScript regular expression and optional flags.

Step 2: Configure & Run

Click Analyze & Stress Test or test one of the built-in evil/safe presets.

Step 3: Inspect & Export

Review the static AST risk audit and the sandboxed Web Worker timing curve.

Frequently Asked Questions

What is ReDoS (Regular Expression Denial of Service)?

ReDoS occurs when a regex with nested quantifiers causes exponential O(2^n) backtracking on specially crafted strings, freezing your server or browser.

Will evil regexes freeze my browser tab?

No. All stress tests run inside an isolated Web Worker with a 700ms automatic kill-switch.

How do I fix a vulnerable regex?

Flatten nested quantifiers like (a+)+ into a single quantifier or use non-overlapping character classes.

Explore Related Tools