Improper input validation in Fastapi-Guard Fastapi Guard
CVE-2025-54365
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.009 · 59.4th percentile
- Published
- 2025-07-23
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.009, 59.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Fastapi-Guard Fastapi Guard — versions 3.0.1
- Rennf93 Fastapi-Guard — versions >= 3.0.1, < 3.0.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.