Regular expression built from user input detected.


Applications should avoid constructing regular expressions from user input. Regular expressions can have exponential worst-case computational complexity, allowing users to trigger this behaviour can result in excessive CPU consumption causing a regular expression denial of service (ReDoS).


❌ Avoid using untrusted or user data when building regular expressions

✅ Specify a timeout when working with regular expressions|b)/, timeout: 3)


Associated CWE

OWASP Top 10