Vulnerability in Fastapi-Guard Fastapi Guard
CVE-2025-53539
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.005 · 42.1th percentile
- Published
- 2025-07-07
FastAPI Guard is a security library for FastAPI that provides middleware to control IPs, log requests, and detect penetration attempts. fastapi-guard's penetration attempts detection uses regex to scan incoming requests. However, some of the regex patterns used in detection are extremely inefficient and can cause polynomial complexity backtracks when handling specially crafted inputs. This vulnerability is fixed in 3.0.1.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
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.005, 42.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Fastapi-Guard Fastapi Guard
- Rennf93 Fastapi-Guard — versions < 3.0.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Tsuesun/PoCForge). These reference the CVE in a list, notes or a scanner and are not exploit code for it.