---
id: "CVE-2026-129302"
page: "https://infrastack.ai/live/CVE-2026-129302"
kind: "vulnerability"
aliases: ["CVE-2026-129302"]
title: "Guard Core: crafted request blocks the event loop, stalling every endpoint"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["django", "fastapi", "flask", "guard-core", "package", "python", "self-hosted"]
not_affected_if: ["no-guard-adapter", "version-outside-range"]
published_at: "2026-11-16T20:19:01+00:00"
first_seen_at: "2026-11-16T20:38:45+00:00"
updated_at: "2026-11-16T20:39:31+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129302", "first_seen_at": "2026-11-16T20:38:45+00:00"}]
exploit_sources: []
---

# Guard Core: crafted request blocks the event loop, stalling every endpoint

Link for people: https://infrastack.ai/live/CVE-2026-129302 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed `guard-core` version with `pip show guard-core`; versions from 3.5.0 up to but not including 3.13.0 are affected.
- Check whether the application uses `SecurityConfig` with penetration detection and enhanced mode enabled, which is the default.

## Fix

- `guard-core` `3.13.0`

## Timeline

- 2026-11-16T20:38:45+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129302

## Documents

- [advisory] Vendor advisory: github.com https://github.com/Guard-Core/guard-core/security/advisories/GHSA-r7hm-rjvg-xx7j
- [fix] Patch: github.com https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4
- [fix] Release notes: github.com https://github.com/Guard-Core/guard-core/releases/tag/3.13.0

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
