CVE-2026-129304 Other in guard-core
When X-Forwarded-For is trusted, attackers can inject Redis keys and ban actions in Guard Core deployments.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Harmful if only installed
- No
- Needs a specific call
- Yes
- Fix
- None listed
What is CVE-2026-129304?
CVE-2026-129304 is a medium-severity other vulnerability in rennf93 guard-core, published on 16 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Guard Core is an API security core engine for the FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard adapters. From 1.0.0 until 3.13.0, _extract_from_forwarded_header() in guard_core/utils.py returns the selected X-Forwarded-For entry without validating that it is an IP address. In deployments configured with trusted_proxies where the selected entry is attacker-controlled, the arbitrary client_ip string reaches BehaviorTracker in guard_core/handlers/behavior_handler.py and is interpolated into Redis key names and blocking KEYS glob patterns. Glob metacharacters can cause one request to count other clients' behavior events, embedded separators can disturb key parsing, and rotating identities can create unbounded keys while repeatedly scanning the shared Redis keyspace. A non-IP identity can also reach a ban action and cause an uncaught validation error. This issue is fixed in version 3.13.0.
Weakness: CWE-20
Which versions are affected by CVE-2026-129304?
An affected version is only exploitable if your software calls _extract_from_forwarded_header() or BehaviorTracker. Many projects that include it are not exposed.
How do I fix CVE-2026-129304?
No fix has been published for CVE-2026-129304 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. More about Other.
Is CVE-2026-129304 being exploited?
There is no known exploitation of CVE-2026-129304 in the wild and no public exploit code.
Sources
Also known as GHSA-gm9r-hvc9-96gv.