CVE-2026-129302 Guard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single request
Unauthenticated requests with many braces can freeze the event loop of Guard Core-based FastAPI apps, blocking all endpoints.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Harmful if only installed
- No
- Needs a specific call
- No
- Fix
- None listed
What is CVE-2026-129302?
CVE-2026-129302 is a high-severity denial of service vulnerability in rennf93 guard-core, published on 16 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Guard Core is an API security core engine for the FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard adapters. From 3.5.0 until 3.13.0, built-in penetration-detection patterns in guard_core/handlers/suspatterns_handler.py execute through a direct pattern.search(content) call instead of the timeout-protected create_safe_matcher() path used for custom patterns. The built-in template-injection detector contains an unbounded expression with quadratic behavior when scanning repeated opening braces. Because penetration detection and enhanced mode are enabled by a stock SecurityConfig, an unauthenticated request can block the shared asyncio event loop, affecting all application endpoints. The triggering input does not produce a detection match, so the request can complete without incrementing ban counters or being recorded as suspicious. This issue is fixed in version 3.13.0.
Which versions are affected by CVE-2026-129302?
An affected version is exposed as installed. No special setting or call is needed.
How do I fix CVE-2026-129302?
No fix has been published for CVE-2026-129302 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-129302 being exploited?
There is no known exploitation of CVE-2026-129302 in the wild and no public exploit code.
Sources
Also known as GHSA-r7hm-rjvg-xx7j.