Live threats

All CVEs / Fastapi-guard

CVE-2025-53539Fastapi-guard Fastapi Guard

Medium 6.9 No auth needed

Priority
56
CVSS 4.0
6.9
EPSS
—
Auth required
No
Published
Jul 7, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fastapi Guard.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI fastapi-guard < 3.0.1 3.0.1 pip install "fastapi-guard>=3.0.1"
PyPI fastapi-guard < 3.0.1 3.0.1 pip install "fastapi-guard>=3.0.1"

Per OSV / GitHub Advisories (GHSA-j47q-rc62-w448, PYSEC-2026-1359). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fastapi-guardfastapi_guard< 3.0.1

Official sources

References

Links published by the sources. Open them with care.