API Security Vulnerability in Guard Core for FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard
CVE-2026-129304
5.4MEDIUM
What is CVE-2026-129304?
The Guard Core API security engine, which supports FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard adapters, contains a vulnerability in the _extract_from_forwarded_header() function. This issue allows attacker-controlled X-Forwarded-For entries to bypass proper validation checks, resulting in arbitrary client IPs being processed. When deployed with trusted proxies, this flaw can lead to unexpected behavior, as it allows harmful strings to interact with BehaviorTracker, improperly influencing Redis key generation and leading to potential data breaches or incorrect behavior tracking. This vulnerability is mitigated in version 3.13.0 of Guard Core.
Affected Version(s)
guard-core >= 1.0.0, < 3.13.0
