CVE-2025-53539
CVE-2025-53539 · ReDoS in fastapi-guard's penetration attempts detector
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.9 · Medium · EPSS 0.5% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
fastapi-guard
- Versions
- < 3.0.1: Affected
No fix published
fastapi-guard PyPI
- Versions
- 0.1.0
- 0.2.0
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 1.0.0
- 1.1.0
- 1.2.0
- 1.2.1
- 1.2.2
- 1.3.2
- 1.4.0
- 1.5.0
- 2.0.0
- 2.0.1
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 3.0.0
- Affected ranges
- ECOSYSTEM: < 3.0.1
Update to 3.0.1