CWE•Base•Draft•20 recent CVEs
CWE-625Permissive Regular Expression
Description
The product uses a regular expression that does not sufficiently restrict the set of allowed values.
Common consequences
- Access Control→Bypass Protection MechanismThe regexp could accept substrings that match the pattern, which produces a partial comparison to the target. In some cases, this can allow dangerous substrings to bypass the intended protection.
Potential mitigations
- ImplementationWhen applicable, ensure that the regular expression marks beginning and ending string patterns, such as "/^string$/" for Perl.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-849875.42026-11-17CVE-2026-1281215.92026-11-13CVE-2026-1263674.82026-11-13CVE-2026-1233157.02026-11-06CVE-2026-341572026-11-05CVE-2026-1206457.52026-11-04CVE-2026-1206317.52026-11-04CVE-2026-1189959.12026-10-30CVE-2026-148148.22026-10-13CVE-2026-1029832026-09-30CVE-2026-799655.32026-09-09CVE-2026-836182026-09-01CVE-2026-836172026-09-01CVE-2026-836092026-09-01CVE-2026-827262026-08-31CVE-2026-555369.12026-08-25CVE-2026-738455.32026-08-14CVE-2026-192786.82026-08-10CVE-2026-649408.62026-08-10CVE-2026-445874.72026-06-17