CVE-2026-129304: Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob pattern
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-gm9r-hvc9-96gv
Summary
Guard Core fails to validate strings extracted from the X-Forwarded-For header, allowing attacker-controlled input to be used directly in Redis keys and blocking KEYS glob patterns. Engineering teams using guard-core versions 1.0.0 up to 3.12.0 should update immediately.
Who is affected
Affected deployments are those using guard-core with configured trusted proxies where the extracted XFF position is attacker-controllable. This flaw enables cross-client counter contamination, unbounded key-space growth that causes blocking Redis scans and performance degradation, and unhandled value errors leading to HTTP 500 server errors on ban actions.
Exploitability
The vulnerability is network-accessible (AV:N) and requires high attack complexity (AC:H) since trusted proxies must be involved and the XFF position controlled. It requires no privileges (PR:N) and no user interaction (UI:N), with a changed security scope (S:C) impacting integrity and availability. The EPSS score is 0.002 and CISA KEV status is false.
Remediation
- Upgrade the PyPI guard-core package to version 3.13.0 or later.
- Ensure that extracted X-Forwarded-For entries are properly validated using ipaddress validation.
How to check your project
- Check Python project dependency files (such as requirements.txt, pyproject.toml, or poetry.lock) to see if guard-core is listed within the version range 1.0.0 through 3.12.0.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | guard-core |
>= 1.0.0, < 3.13.0 | 3.13.0 | python -m pip install 'guard-core>=3.13.0' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Changed |
| Confidentiality | None |
| Integrity | Low |
| Availability | Low |
FAQ
What packages are affected by CVE-2026-129304?
The PyPI package guard-core is affected for all versions introduced at 1.0.0 and fixed in 3.13.0.
Is the vulnerability exploitable with default settings?
No, it is not reachable with default settings because trusted_proxies defaults to empty.
What is the security impact of this vulnerability?
It compromises the integrity and availability of the behavioral-analytics subsystem and shared Redis instance, leading to potential cross-client counter contamination and denial of service via blocking Redis scans.
Original advisory description
References
- WEB https://github.com/Guard-Core/guard-core/security/advisories/GHSA-gm9r-hvc9-96gv
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-129304
- WEB https://github.com/Guard-Core/guard-core/pull/68
- WEB https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4
- WEB https://github.com/Guard-Core/guard-core/releases/tag/3.13.0
- PACKAGE https://github.com/rennf93/guard-core
Source records: GHSA-gm9r-hvc9-96gv (OSV.dev) · EPSS by FIRST, 2026-11-24.