Skip to content
Heist/ feed
Back to feed
High

fastapi-guard patch contains bypassable RegEx

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-54365
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:37 UTC · Revision 1

Source evidence

fastapi-guard patch contains bypassable RegEx

core-osv · Original source

Published 23 Jul 2025, 22:11 UTC

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

osv:CVE-2025-54365
Complete source record
{
  "id": "10c8a57a50495acdb1b4f9ba9b871bcce69f3c3427a942ff9f695ab7eccb00ef",
  "url": "https://osv.dev/vulnerability/CVE-2025-54365",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "fastapi-guard patch contains bypassable RegEx",
    "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",
    "evidence": "osv:CVE-2025-54365",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-54365",
      "aliases": [
        "CVE-2025-54365",
        "GHSA-rrf6-pxg8-684g",
        "PYSEC-2026-1360"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/Guard-Core/fastapi-guard",
              "type": "GIT",
              "events": [
                {
                  "introduced": "783c8fafd1dd4fb2f30c7f1a296a386b1dee638b"
                },
                {
                  "fixed": "0829292c322d33dc14ab00c5451c5c138148035a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.0.1"
                      },
                      {
                        "fixed": "3.0.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54365.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.518343932Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54365.json",
        "https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-rrf6-pxg8-684g",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-54365",
        "https://github.com/rennf93/fastapi-guard/commit/0829292c322d33dc14ab00c5451c5c138148035a",
        "https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-185",
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54365.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-54365",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508044,
  "published_at": "2025-07-23T22:11:36.441+00:00"
}