CVE-2025-53539
MEDIUM 6.9CVSS 4.0fastapi-guard is vulnerable to ReDoS through inefficient regex
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.
- Published
- 7 Jul 2025
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-j47q-rc62-w448PYSEC-2026-1359
- Sources
- NVDJSONOSV GHSA-j47q-rc62-w448JSONOSV PYSEC-2026-1359JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastapi-guard | fastapi_guardcpe:2.3:a:fastapi-guard:fastapi_guard:*:*:*:*:*:*:*:* |
< 3.0.1 | 3.0.1 |
| OSV | PyPI | fastapi-guard | < 3.0.1 | 3.0.1 |
References
- https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f · Patch, WEB
- https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-j47q-rc62-w448 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53539 · ADVISORY
- https://github.com/rennf93/fastapi-guard · PACKAGE
- https://pypi.org/project/fastapi-guard · PACKAGE
- https://github.com/advisories/GHSA-j47q-rc62-w448 · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 7 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jul 2025)