CWE-186: Overly Restrictive Regular Expression
A regular expression is overly restrictive in a way that does not match all intended values.
Last updated
Overview
CWE-186 (Overly Restrictive Regular Expression) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
3 recorded CVEs are caused by CWE-186 (Overly Restrictive Regular Expression). The highest-severity and most recent are shown first. 2 new CWE-186 CVEs have been recorded so far in 2026 (1 in 2025).
- CVE-2026-133756
HtmlSanitizer Doesn't Check Meta Refresh URLs Whose Time Follows a Vertical Tab or a Unicode Space: Incomplete Fix for CVE-2026-121373
Medium · CVSS 5.3 · EPSS 55th2026-11-25 - CVE-2026-121373
Symfony: HtmlSanitizer MetaRefreshAttributeSanitizer Matches Only a Narrow Subset of the Browser Refresh Grammar (Incomplete Fix for CVE-2026-48761)
Medium · CVSS 5.3 · EPSS 56th2026-11-04 - CVE-2025-46821
Envoy vulnerable to bypass of RBAC uri_template permission