CVE-2026-129304
Description
guard-core 1.0.0-3.12.0: _extract_from_forwarded_header returned the selected XFF entry with no ipaddress validation — an attacker entry (*, evil[?]) becomes client_ip and BehaviorTracker interpolates it into a Redis KEYS glob. Verbatim v3.12.0 function vs v3.13.0 ip_extraction: metachar accepted on vuln, refused + benign canonicalized on fixed.
CVE-CVE-2026-129304 Details
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...
Related PoCs for CVE-2026-129304
No other PoCs found for this CVE.