Common Weakness Enumeration

    CWE Definition / CWE-186

    CWE-186: Overly Restrictive Regular Expression

    A regular expression is overly restrictive, which prevents dangerous values from being detected.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:30 Apr 2026

    Related Weakness

    CWE-185: Incorrect Regular Expression

    CWE-184: Incomplete List of Disallowed Inputs

    CWE-183: Permissive List of Allowed Inputs