CVE-2025-54365

Source
https://cve.org/CVERecord?id=CVE-2025-54365
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54365.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-54365
Aliases
Published
2025-07-23T22:11:36.441Z
Modified
2026-04-02T12:53:30.909022Z
Severity
  • 7.8 (High) CVSS_V4 - 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 CVSS Calculator
Summary
fastapi-guard patch contains bypassable RegEx
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-185",
        "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54365.json"
}
References

Affected packages

Git / github.com/rennf93/fastapi-guard

Affected ranges

Type
GIT
Repo
https://github.com/rennf93/fastapi-guard
Events

Affected versions

3.*
3.0.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54365.json"