Property
Languagetypescript
Severitylow
CWECWE-183: Permissive List of Allowed Inputs
OWASPA04:2021 - Insecure Design
Confidence LevelLow
Impact LevelLow
Likelihood LevelLow

Description#

The CORS domain regular expression uses an unescaped ‘.’ character, which matches any character instead of just a literal dot. This can unintentionally allow requests from unauthorized or unexpected origins.

Impact#

If exploited, attackers could send cross-origin requests from malicious domains that match the overly broad pattern, potentially exposing sensitive data or enabling unauthorized actions on behalf of users. This weakens the access control protections provided by CORS.