vetkit.ruby.regex.multiline-anchor-validation
Request input is validated with a regex anchored by ^ / $, which match at line breaks in Ruby. A value with an embedded newline passes the check (use \A and \z).
Last updated:
Suite: Security
ruby
Request input is validated with a regex anchored by ^ / $, which match at line breaks in Ruby. A value with an embedded newline passes the check (use \A and \z).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Anchor validation regexes with \A and \z instead of ^ and $.
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.