home / blog
2026-11-22 · medium
CVE-2026-129304: Guard Core flaw manipulates Redis
Guard Core IP extraction vulnerability enables Redis key manipulation. Patch available in version 3.13.0.

CVE-2026-129304 affects Guard Core, a component used by FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard libraries. The _extract_from_forwarded_header() function in versions 1.0.0-3.13.0 returns the selected entry from the X-Forwarded-For header without validating that it's a valid IP address. In deployments with trusted_proxies where the entry is attacker-controlled, an arbitrary client_ip string reaches BehaviorTracker and is interpolated into Redis key names and blocking KEYS patterns.
Impact: With a CVSS of 5.4 (medium severity), the vulnerability was patched on November 16, 2026, with a fix declared in version 3.13.0. Sources confirm the existence of repositories that claim to contain exploits for this vulnerability, as reported on GitHub. The development team has corrected the issue by implementing IP address validation in the extraction function.
Defense: Immediately update to Guard Core version 3.13.0 or later. For instances that cannot be updated, implement a filter that validates the X-Forwarded-For header to ensure it contains only valid IP addresses. Monitor Redis access for anomalous activities such as unusual key patterns or excessive requests.
At a glance
- What
- Vulnerability in _extract_from_forwarded_header() that returns X-Forwarded-For entries without IP validation
- Severity
- 5.4 (CVSS 3.x)
- Affected versions
- From 1.0.0 to 3.13.0
- Fix
- Version 3.13.0
- Status
- Patched
- Action
- Update to version 3.13.0 or later
Sources: NVD, CVE-2026-129304