vetkit.ruby.regex.injection
A regular expression is compiled from request input. Attackers can supply a catastrophic pattern (ReDoS) or alter the match logic.
Last updated:
Suite: Security
ruby
A regular expression is compiled from request input. Attackers can supply a catastrophic pattern (ReDoS) or alter the match logic.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Escape the value with Regexp.escape (or use string methods such as include?) and set Regexp.timeout on Ruby 3.2+.
References
Source: packages/engine/rules/sast/ruby.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.