CVE-2026-129302
Received Received - Intake

Guard Core Async Event Loop Block via Template Injection

Vulnerability report for CVE-2026-129302, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
guard_core guard_core From 3.5.0 (inc) to 3.13.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-129302 is a ReDoS (Regular Expression Denial of Service) vulnerability in the Guard Core library affecting versions 3.5.0 to 3.12.0. It involves a template-injection detector with quadratic time complexity due to unbounded backtracking in a regex pattern. The vulnerability allows unauthenticated attackers to freeze the asyncio event loop by sending crafted payloads like repeated curly braces, causing significant delays without triggering detection or logging.

Detection Guidance

This vulnerability is a ReDoS issue in guard-core versions 3.5.0 to 3.12.0. Detection requires checking the installed version of guard-core. Use the command: pip show guard-core. If the version is between 3.5.0 and 3.12.0, the system is vulnerable.

Impact Analysis

This vulnerability can cause severe performance degradation or complete denial of service for applications using Guard Core in single-process asyncio deployments. A single malicious request with a large payload can block the event loop for up to 44 seconds, affecting all application endpoints. The attack is invisible in telemetry since the payload does not trigger detection matches or increment ban counters.

Mitigation Strategies

Upgrade guard-core to version 3.13.0 or later immediately. Use the command: pip install --upgrade guard-core==3.13.0. This version includes fixes for the ReDoS vulnerability and other security improvements.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129302. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...