sast_unsafe_regex
Scan source code for unsafe regular expressions created with user input, preventing ReDoS attacks and validation bypasses.
Instructions
Detect new RegExp() with user-controlled input without proper escaping. Attacker-controlled regex can cause ReDoS or bypass validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path containing source files to analyze |