Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.regex.multiline-format-validation

A format validation opts into multiline: true, allowing ^ / $ anchors that match at line breaks. Values with an embedded newline can pass the validation.

Last updated:

Suite: Security

ruby

A format validation opts into multiline: true, allowing ^ / $ anchors that match at line breaks. Values with an embedded newline can pass the validation.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Use \A and \z anchors and drop multiline: true unless multi-line values are really intended.

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.