CVE-2025-53539: rennf93 fastapi-guard · ReDoS
Affects rennf93 fastapi-guardSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 3.0.1 when convenient.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.0.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade rennf93 fastapi-guard to 3.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIfastapi-guardpkg:pypi/fastapi-guardOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should promptly upgrade fastapi-guard to version 3.0.1 or later, where the inefficient regex patterns have been corrected. Until the upgrade is applied, organizations can implement the following specific mitigations: 1) Employ Web Application Firewalls (WAFs) with custom rules to detect and block requests containing suspicious payloads that could trigger regex backtracking; 2) Monitor application performance metrics closely to detect unusual CPU spikes indicative of exploitation attempts; 3) Limit request rates and implement IP-based throttling to reduce the impact of potential DoS attempts; 4) Review and harden input validation logic in the application to reduce reliance on complex regex patterns; 5) Conduct regular security testing including fuzzing inputs to identify similar inefficiencies; 6) Maintain an incident response plan that includes detection and mitigation of DoS attacks targeting regex vulnerabilities. These steps go beyond generic advice by focusing on immediate protective controls and monitoring tailored to this specific regex complexity issue.
Description
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.