CVE-2025-54365 json
fastapi-guard patch contains bypassable RegEx
published last yr. modified last mo. also GHSA-rrf6-pxg8-684g , PYSEC-2026-1360 , EUVD-2025-22476
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi fastapi-guard 3.0.2
Is CVE-2025-54365 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.87% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-rrf6-pxg8-684g referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.8 | 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 |
| CNA | 4.0 | 7.8 | 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/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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | fastapi-guard | >=3.0.1, <3.0.2 |
3.0.2 |
Affected products
- rennf93 fastapi-guard
Classification
References
-
github.com
/rennf93/fastapi-guard/commit/0829292c322d33dc14ab00c5451c5c138148035a
web, patch
-
github.com
/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f
web, patch
-
github.com
/rennf93/fastapi-guard/security/advisories/GHSA-rrf6-pxg8-684g
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-54365
advisory
-
github.com
/rennf93/fastapi-guard
package
-
pypi.org
/project/fastapi-guard
package
-
github.com
/advisories/GHSA-rrf6-pxg8-684g
advisory
Sources
- CVE List CVE-2025-54365
- GitHub Advisory GHSA-rrf6-pxg8-684g
- NVD CVE-2025-54365
- OSV PYSEC-2026-1360
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.