PyPI
CVE-2026-129303
Guard Core: Whitespace-collapse preprocessing permanently disables the CRLF-anchored http-splitting and command-injection detectors in the default detection mode
- Severity
- Low 3.7
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.13.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N- Also known as
- GHSA-w7wg-6q7v-44f2
- Sources
- OSV.dev and GitHub
Description
In the default "enhanced" detection mode, ContentPreprocessor.preprocess() collapses all whitespace (re.sub(r"\s+", " ", content), guard_core/detection_engine/preprocessor.py:137 on master 08780f1; :384 in the 3.12.0 sdist) before pattern matching. This erases every \r and \n from the scanned value, rendering two built-in detectors structurally unmatchable regardless of input:
- http_split — guard_core/handlers/suspatterns_handler.py:540: r"[\r\n]\s*(?:HTTP\/[0-9.]+|Location:|Set-Cookie:)" requires a literal \r or \n, which no longer exists after preprocessing;
- cmd_injection — r"\n\s*(?:bash|sh|...)\s+-c\b" — same structural death.
The downstream application receives the raw value with CRLF intact (Starlette percent-decodes %0d%0a in query parameters before the adapter passes request.query_params.items() to guard_core/utils.py:843-865), so a response-splitting-shaped payload passes detection unflagged.
Affected software
| Software | Affected versions |
|---|---|
guard-corePyPI · osv:PyPI:guard-core |
|
About guard-core
- Weekly downloads (PyPI)
- 17,249PyPI Stats, 24 Nov 2026
Vulnerabilities in guard-core
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-129304Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob patternMedium 5.4 19 Nov 2026
- CVE-2026-129302Guard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single requestHigh 7.5 19 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129303
- GitHub Advisory Database https://github.com/advisories/GHSA-w7wg-6q7v-44f2