Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend CRLF-laden query parameter
-
DeliveryFramework percent-decodes %0d%0a to literal CRLF
-
ExploitPreprocessor collapses whitespace, erasing CRLF
-
Executionhttp_split/cmd_injection detectors fail to match
-
PersistRaw newline value forwarded to downstream app
-
ImpactResponse 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Guard Core
View allGuard-core 3.5.0 through 3.12.0 lets a single unauthenticated request freeze every endpoint of an application that embed
Improper input validation in Guard Core (the shared API-security engine behind FastAPI-Guard, FlaskAPI Guard and DjAPI G
EUVD-2026-126619
GHSA-w7wg-6q7v-44f2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB