fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit. This type of patch fails to detect cases in which the string representing the attributes of a <script> tag exceeds 100 characters. As a result, most of the regex patterns present in version 3.0.1 can be bypassed. This is fixed in version 3.0.2.
Metrics
Affected Vendors & Products
References
History
Thu, 24 Jul 2025 14:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Wed, 23 Jul 2025 22:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit. This type of patch fails to detect cases in which the string representing the attributes of a <script> tag exceeds 100 characters. As a result, most of the regex patterns present in version 3.0.1 can be bypassed. This is fixed in version 3.0.2. | |
Title | fastapi-guard patch contains bypassable RegEx | |
Weaknesses | CWE-185 CWE-20 |
|
References |
| |
Metrics |
cvssV4_0
|

Status: PUBLISHED
Assigner: GitHub_M
Published: 2025-07-23T22:11:36.441Z
Updated: 2025-07-24T13:36:52.638Z
Reserved: 2025-07-21T16:12:20.731Z
Link: CVE-2025-54365

Updated: 2025-07-24T13:13:17.202Z

Status : Awaiting Analysis
Published: 2025-07-23T23:15:24.050
Modified: 2025-07-25T15:29:44.523
Link: CVE-2025-54365

No data.