API Security Vulnerability in Guard Core for FastAPI, FlaskAPI, and DjAPI
CVE-2026-129303
What is CVE-2026-129303?
Guard Core, an API security core engine, exhibits a vulnerability affecting its ability to properly validate input in various frameworks, including FastAPI and FlaskAPI. The issue arises in the ContentPreprocessor.preprocess() method, where all whitespace is collapsed during built-in pattern matching in default enhanced mode. This unintended behavior causes carriage returns and newlines, crucial for HTTP split and command injection detection, to be removed. Consequently, malign crafted requests containing CRLF sequences can go undetected, posing a risk if the downstream application utilizes the unvalidated value in contexts that tolerate CRLF sequences. This vulnerability underscores the importance of ensuring that API security mechanisms correctly manage and inspect incoming requests to prevent potential exploits. The issue has been remedied in Guard Core version 3.13.0.
Affected Version(s)
guard-core >= 1.0.0, < 3.13.0
