p PatchFirst

CVE-2026-129302

CVE-2026-129302 · Guard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single request

CVSS 7.5 · High · EPSS 0.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

pip show guard-core

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: python

Affected products and versions

  • guard-core

    Versions
    • >= 3.5.0, < 3.13.0: Affected

    No fix published

  • guard-core PyPI

    Versions
    • 3.10.0
    • 3.11.0
    • 3.12.0
    • 3.5.0
    • 3.6.0
    • 3.7.0
    All versions (10)
    • 3.7.1
    • 3.8.0
    • 3.8.1
    • 3.9.0
    Affected ranges
    • ECOSYSTEM: ≥ 3.5.0, < 3.13.0

    Update to 3.13.0

Original sources

Check your server →