---
id: "CVE-2026-129303"
page: "https://infrastack.ai/live/CVE-2026-129303"
kind: "vulnerability"
aliases: ["CVE-2026-129303"]
title: "Guard Core: whitespace collapse lets CRLF payloads evade request filters"
severity: "low"
cvss: 3.7
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["djapi-guard", "fastapi-guard", "flaskapi-guard", "guard-core", "package", "python"]
not_affected_if: ["no-downstream-echo", "version-3.13.0-or-later"]
published_at: "2026-11-16T20:19:01+00:00"
first_seen_at: "2026-11-16T20:38:45+00:00"
updated_at: "2026-11-16T20:39:39+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129303", "first_seen_at": "2026-11-16T20:38:45+00:00"}]
exploit_sources: []
---

# Guard Core: whitespace collapse lets CRLF payloads evade request filters

Link for people: https://infrastack.ai/live/CVE-2026-129303 (this .md is for agents)

Guard Core, the security engine behind the FastAPI, Flask and Django Guard adapters, collapses newlines before its built-in detection rules run, so header-splitting and newline-based command injection patterns stop matching. An attacker can send CRLF-bearing input that passes unflagged and reaches the application with the newline intact, which matters only if the application then writes that value into a response or command.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed `guard-core` version in your Python environment, for example with `pip show guard-core`.
- Look for `fastapi-guard`, `flaskapi-guard` or `djapi-guard` in your dependencies and confirm which `guard-core` version they pull in.
- Confirm whether you use the default enhanced detection mode; the sources describe the issue only for that mode.

## Fix

- `guard-core` `3.13.0` (fixed version per the sources).

## Timeline

- 2026-11-16T20:38:45+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129303

## Documents

- [advisory] Vendor advisory: github.com https://github.com/Guard-Core/guard-core/security/advisories/GHSA-w7wg-6q7v-44f2
- [fix] Patch: github.com https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4
- [fix] Release notes: github.com https://github.com/Guard-Core/guard-core/releases/tag/3.13.0

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
