vetkit.py.regex-injection.request-pattern
A regular expression is compiled from request input. Crafted patterns cause catastrophic backtracking (ReDoS) or match more than intended.
Last updated:
Suite: Security
python
A regular expression is compiled from request input. Crafted patterns cause catastrophic backtracking (ReDoS) or match more than intended.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Escape user text with re.escape() before embedding it, or match it as a plain substring.
References
Source: packages/engine/rules/sast/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.