{"cve":"CVE-2025-54365","nvd":{"published":"2025-07-23T23:15:24.050","modified":"2026-06-17T09:39:55.910","status":"Analyzed","description":"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.","cvss_v4":{"vector":"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","score":7.8},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333","CWE-20","CWE-185"],"references":["https://github.com/rennf93/fastapi-guard/commit/0829292c322d33dc14ab00c5451c5c138148035a","https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f","https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-rrf6-pxg8-684g","https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-rrf6-pxg8-684g"],"products":["fastapi-guard:fastapi_guard"],"source":"nvd","synced_at":"2026-10-19T22:05:46.678065081+00:00"},"epss":{"cve":"CVE-2025-54365","score":0.00871,"percentile":0.58858,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rrf6-pxg8-684g","url":"https://osv.dev/vulnerability/GHSA-rrf6-pxg8-684g","summary":"FastAPI Guard has a regex bypass","modified":"2026-09-10T03:50:26.308489240Z","packages":[{"ecosystem":"PyPI","name":"fastapi-guard","purl":"pkg:pypi/fastapi-guard","ranges":[">=3.0.1 <3.0.2"],"fixed":["3.0.2"]}]},{"id":"PYSEC-2026-1360","url":"https://osv.dev/vulnerability/PYSEC-2026-1360","summary":"FastAPI Guard has a regex bypass","modified":"2026-07-07T17:47:35.923844529Z","packages":[{"ecosystem":"PyPI","name":"fastapi-guard","purl":"pkg:pypi/fastapi-guard","ranges":[">=3.0.1 <3.0.2"],"fixed":["3.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}