CVE-2026-129302 · Package
NO FIX YET · SEE WHAT TO DO
Guard Core, the security engine behind the FastAPI-Guard, FlaskAPI Guard and DjAPI Guard adapters, runs a built-in template-injection pattern with quadratic cost on repeated opening braces. An unauthenticated request with that input blocks the shared asyncio event loop, so the whole application stops responding.
first public Aug 25, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Applications built on the FastAPI-Guard, FlaskAPI Guard or DjAPI Guard adapters that pull in guard-core between 3.5.0 and 3.13.0. Stock SecurityConfig enables the affected detection path, so default configurations are exposed. Services that do not use these adapters, or run a version outside the range, can skip it.
Not affected if no-guard-adapter, version-outside-range
Who cares django, fastapi, flask, guard-core, python, self-hosted
guard-core version with pip show guard-core; versions from 3.5.0 up to but not including 3.13.0 are affected.SecurityConfig with penetration detection and enhanced mode enabled, which is the default.guard-core 3.13.0Guard 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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.