CWE-625

Permissive Regular Expression

High

Description

The product uses a regular expression that does not sufficiently restrict the set of allowed values.

Potential Impact

How to Fix

Implementation

When applicable, ensure that the regular expression marks beginning and ending string patterns, such as "/^string$/" for Perl.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-625 vulnerabilities in your codebase.

Get Security Assessment