CVE-2025-54365
published high CVSS 4.0 · 7.8fastapi-guard patch contains bypassable RegEx
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rennf93 | — | fastapi-guard>= 3.0.1, < 3.0.2 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rennf93 | fastapi-guard | >= 3.0.1, < 3.0.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-20 CWE-20: Improper Input Validation
- CWE-185 CWE-185: Incorrect Regular Expression
References
3Provider assertions
2GitHub_M · cna
fastapi-guard patch contains bypassable RegEx
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 46ec85252f31073b1c534798e248cb4a30a4c61345e86ff6b063fe8a12e59bd0
- Ingested
- 23 Sep 2026, 08:53:04 UTC
- Source record
- Official CVE record