Skip to main content

Guard Core CVE-2026-129303

| EUVDEUVD-2026-126619 LOW
Protection Mechanism Failure (CWE-693)
2026-11-16 GitHub_M GHSA-w7wg-6q7v-44f2
3.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send CRLF-laden query parameter
  2. Delivery
    Framework percent-decodes %0d%0a to literal CRLF
  3. Exploit
    Preprocessor collapses whitespace, erasing CRLF
  4. Execution
    http_split/cmd_injection detectors fail to match
  5. Persist
    Raw newline value forwarded to downstream app
  6. Impact
    Response splitting in CRLF-tolerant parser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
Exploitation Conditions

Exploitation requires the default 'enhanced' detection mode, which every stock SecurityConfig activates (legacy mode without SecurityConfig detection attributes skips preprocessing and is NOT affected). The attacker needs no authentication and can deliver the CRLF payload remotely via a query parameter that the framework percent-decodes. The decisive LIMITING factor: this is only a detection bypass - direct security impact requires a downstream stack or application that persists or re-emits the raw CRLF-bearing value into a CRLF-tolerant response or command context. It is explicitly NOT exploitable against Starlette/uvicorn-backed apps, which reject CRLF in response headers; residual risk is confined to apps behind other stacks or that store-and-reflect the value where a CRLF-tolerant parser exists.

Impact

This is a low-severity (CVSS 3.7) detection-bypass in a defense-in-depth WAF layer, not a directly exploitable code-execution flaw. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N signals a network-reachable, unauthenticated issue (PR:N) with high attack complexity (AC:H) and only low integrity impact (I:L), no confidentiality or availability impact - consistent with a protection-mechanism failure (CWE-693) rather than a primary vulnerability. The vuln.today decision label is 'monitor', and there is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or widespread exploitation: exploitation status is 'no public exploit identified as actively exploited'. However, a public proof-of-concept DOES exist and was verified end-to-end by the reporter in the GHSA advisory against a live uvicorn/fastapi-guard stack, so this is not merely theoretical. The signals are internally consistent: high complexity and low impact both reflect that real damage requires a specific downstream condition (a CRLF-tolerant response/command context) outside the attacker's control. Net: a genuine but conditional security-control gap, appropriately prioritized as 'monitor' rather than an emergency - patch in normal maintenance cycles. EPSS is absent, so probability of exploitation cannot be quantified from the input.

Exploit ScenarioDerived

An unauthenticated remote attacker sends a query parameter containing percent-encoded CRLF (e.g. value%0d%0aHTTP%2F1.1+200+OK%0d%0aSet-Cookie%3A+pwned%3D1); the framework decodes it to literal CRLF and Guard Core's enhanced-mode preprocessor collapses the newlines, so the http_split and cmd_injection detectors never fire and the payload passes unflagged. A verified public PoC for this bypass exists in the GHSA advisory. Actual harm only materializes if a downstream stack or application persists or re-emits the raw newline-bearing value into a CRLF-tolerant response or command context - Starlette/uvicorn apps themselves reject CRLF in response headers.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Whitespace-collapse preprocessing in Guard Core 1.0.0 through 3.12.0 runs before pattern matching in the default enhanced detection mode, structurally disabling the CRLF-anchored http_split and newline-anchored cmd_injection detectors so framework-decoded CRLF payloads pass the API security layer unflagged. Any deployment of the FastAPI-Guard, FlaskAPI Guard or DjAPI Guard adapters using a stock SecurityConfig is affected, while legacy mode (no SecurityConfig detection attributes) skips preprocessing and still catches the same payload. Impact is a detection bypass in a defense-in-depth layer rather than direct code execution: the advisory states it is not exploitable against Starlette/uvicorn-backed apps, which reject CRLF in response headers, and a public proof-of-concept included in the advisory reproduces the missed CRLF payload alongside SQLi controls that are still blocked.

RemediationAI

Upgrade to guard-core 3.13.0, the vendor-released patch version published on PyPI, which was produced by https://github.com/Guard-Core/guard-core/pull/68 and commit c07239fa1c5aa93e3f179440e79dad652977d3e4 and is tracked at https://github.com/Guard-Core/guard-core/releases/tag/3.13.0; the advisory at https://github.com/Guard-Core/guard-core/security/advisories/GHSA-w7wg-6q7v-44f2 also asks reporters to install 3.13.0 and confirm resolution. The fix preserves \r\n during whitespace collapse (collapsing only spaces and tabs) or runs the newline-anchored patterns against pre-collapse content. If upgrading immediately is not possible, the advisory notes that legacy mode - a configuration with no SecurityConfig detection attributes - skips preprocessing and does catch the decoded CRLF payload, at the cost of the enhanced-mode detection pipeline and its other preprocessing/normalization steps; no other compensating control is documented in the available sources. Given that this is a detection bypass in a defense-in-depth layer rather than directly exploitable behavior, environments should also verify whether their downstream stack is one of the residual-risk cases the advisory calls out - an application that persists or re-emits the raw value into a CRLF-tolerant response or command context - since Starlette/uvicorn-backed apps reject CRLF in response headers and are not directly exploitable.

Affected VersionsENISA

guard-core 1.0.0, < 3.13.0

Affected Packages

pypi guard-core fix: 3.13.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue is a protection-mechanism failure (CWE-693) in the guard_core detection pipeline rather than a memory-safety or injection flaw in Guard Core itself. ContentPreprocessor.preprocess() in guard_core/detection_engine/preprocessor.py applies re.sub(r"\s+", " ", content) to the scanned value before any built-in pattern runs; because \s matches carriage returns and newlines, every \r and \n is erased before the regex engine sees the input. Two detectors in guard_core/handlers/suspatterns_handler.py are written to require those characters literally - http_split at line 540 (r"[\r\n]\s*(?:HTTP\/[0-9.]+|Location:|Set-Cookie:)") and the newline-anchored cmd_injection rule (r"\n\s*(?:bash|sh|...)\s+-c\b") - so both become unmatchable regardless of payload. The bypass is reachable because Starlette percent-decodes %0d%0a in query parameters before the adapter forwards request.query_params.items() through guard_core/utils.py, meaning Guard Core inspects a value whose newlines have just been normalized away while the downstream application still receives the raw newline-bearing string. The advisory contrasts this with the other preprocessing steps (URL, HTML, hex and base64 decoding), which transform content toward attacker intent, whereas whitespace collapse removes the exact signal the detectors were authored to require. The gap is specific to the enhanced pipeline that every stock SecurityConfig activates; legacy mode without detection attributes bypasses preprocessing entirely and blocks the same decoded CRLF payload.

Know when Guard Core gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 3.7 LOW

Remote unauthenticated bypass (AV:N/PR:N/UI:N), but AC:H because direct impact depends on a downstream CRLF-tolerant context outside attacker control; only low integrity impact, no C or A.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 16, 2026 - 21:02 EUVD

DescriptionCVE.org

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, ContentPreprocessor.preprocess() in guard_core/detection_engine/preprocessor.py collapses all whitespace before built-in pattern matching in the default enhanced mode. This removes carriage returns and newlines required by the http_split and newline-anchored cmd_injection detectors in guard_core/handlers/suspatterns_handler.py, making those detectors unable to match. Framework-decoded CRLF can therefore pass through Guard Core unflagged while the downstream application still receives the raw newline-bearing value. Direct security impact requires a downstream stack or application that persists or re-emits the value into a CRLF-tolerant response or command context. This issue is fixed in version 3.13.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche open-source Python API-security library (rennf93/guard-core), limited production footprint
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy