Property
Languagejavascript
Severitymedium
CWECWE-1333: Inefficient Regular Expression Complexity
OWASPA05:2021 - Security Misconfiguration
Confidence LevelLow
Impact LevelMedium
Likelihood LevelMedium

Description#

The code creates regular expressions using input that isn’t hardcoded, such as function arguments. This allows user-controlled values to define regex patterns, which can introduce security risks if not validated.

Impact#

An attacker could supply a specially crafted regular expression that causes excessive processing time (ReDoS), potentially freezing or severely slowing down your application. This can lead to denial of service, impacting availability for legitimate users.