All rules →
Rules / Ruby
SHIELD-RUBY-023

Regex denial of service via interpolated pattern

mediumRubyCWE-1333CVSS 5.3

What it detects

Building a Regexp from unsanitized user input can create catastrophic backtracking patterns.

How to fix

Escape user input with Regexp.escape or match against a fixed anchored pattern.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-023: Regex denial of service via interpolated pattern — Zennoxa Shield