API Security Vulnerability in Guard Core for FastAPI, FlaskAPI, and DjAPI
CVE-2026-129302
What is CVE-2026-129302?
Guard Core, an API security engine for FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard, is vulnerable in versions 3.5.0 to 3.12.0. A flaw exists in the built-in penetration detection patterns, specifically in the 'guard_core/handlers/suspatterns_handler.py' file. The pattern.search(content) function call lacks timeout protection, which may cause the application to become unresponsive. This issue arises due to an unbounded expression in the template-injection detector that exhibits quadratic behavior with repeated opening braces. Additionally, a successful attack does not trigger a detection match, allowing potentially malicious requests to complete without alerting or incrementing ban counters. To protect your application, upgrade to version 3.13.0 or later.
Affected Version(s)
guard-core >= 3.5.0, < 3.13.0
