CVE-2025-54365: PYSEC-2026-1360 - FastAPI Guard has a regex bypass

CVE-2025-54365 · Severity: medium · CVSS 4 · Published 2026-07-07

FastAPI Guard has a regex bypass

Technologies: fastapi-guard (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-54365 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-54365 being exploited in the wild.
How severe is CVE-2025-54365?
Medium severity, with a CVSS score of 4, published 7 July 2026.
Which products and versions are affected?
fastapi-guard (PyPI) ECOSYSTEM:introduced=3.0.1,fixed=3.0.2.
Is there a fix for CVE-2025-54365?
Yes. fastapi-guard (PyPI): upgrade to 3.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-54365?
Check whether you run fastapi-guard (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • fastapi-guard (PyPI): upgrade to 3.0.2 or later
    pip install "fastapi-guard>=3.0.2"

Affected products

  • fastapi-guard (PyPI) ECOSYSTEM:introduced=3.0.1,fixed=3.0.2

Identifiers

  • CVE-2025-54365
  • GHSA-rrf6-pxg8-684g
  • PYSEC-2026-1360

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.