Browser-Based Developer Security No Registration Required

Regex ReDoS Security Tester

Audit regular expressions for catastrophic backtracking (ReDoS) risks and benchmark inputs safely inside a timeout-guarded Web Worker.

Executes inside an isolated Web Worker with a hard 1,500 ms termination timeout. ReDoS Safe Sandbox

How Regex ReDoS Security Tester Works

Combines static pattern heuristics (detecting nested quantifiers such as (a+)+, (.*)*, and overlapping quantified alternations) with a sandboxed Web Worker execution timer.

If a regex stalls past the safety timeout (1,500 ms), the Worker is terminated immediately so your browser tab stays responsive.

Step-by-Step Usage Instructions

  1. Enter a regular expression pattern and flags, plus a test input string.
  2. Click Analyze & Test Safely to view static ReDoS risk warnings and timed execution metrics.
  3. Refactor flagged nested quantifiers into non-backtracking linear patterns or bounded length checks.

Practical Examples

Vulnerable Nested Quantifier

Sample Input

Pattern: ^([a-zA-Z0-9]+)+$ | Test: aaaaaaaaaaaaaaaaaaaaa!

Expected Result

High ReDoS Risk: Nested quantifier (+)+ triggers exponential backtracking on mismatch

Frequently Asked Questions

Backtracking NFA regex engines explore exponentially many match paths when nested quantifiers or ambiguous alternations fail near the end of an input string.
The test runs in a background Worker thread and calls worker.terminate() if it does not finish within 1,500 ms.

Keep Exploring

Related Cybersecurity Tools

Browse All Tools →
Browser-Based (Optional Save) Free

Security Assessment

OWASP Security Checklist

Structured OWASP ASVS v4.0.3-aligned web application security review across 12 domains with CSV/printable export.