sast_unsafe_regex
Detect unsafe RegExp construction from user input to prevent ReDoS attacks and validation bypass.
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 |