{"id":"CVE-2026-129303","kind":"vulnerability","aliases":["CVE-2026-129303"],"related":[],"title":"Guard Core: whitespace collapse lets CRLF payloads evade request filters","description":"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.","summary":"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.","severity":"low","cvss":3.7,"epss":null,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the installed `guard-core` version in your Python environment, for example with `pip show guard-core`.\n- Look for `fastapi-guard`, `flaskapi-guard` or `djapi-guard` in your dependencies and confirm which `guard-core` version they pull in.\n- 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).","status":"open","published_at":"2026-11-16T20:19:01+00:00","first_seen_at":"2026-11-16T20:38:45+00:00","triaged_at":"2026-11-16T20:39:39+00:00","updated_at":"2026-11-16T20:39:39+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T20:39:39Z","model":"claude-haiku-5-5","output":{"fix":"- `guard-core` `3.13.0` (fixed version per the sources).","reach":"internet","title":"Guard Core: whitespace collapse lets CRLF payloads evade request filters","impact":"low","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","fastapi-guard","flaskapi-guard","djapi-guard","guard-core"],"confidence":0.7,"fix_status":"available","needs_auth":"no","worst_case":"Unfiltered CRLF input reaches the app and may enable header injection","analyst_note":"","how_to_check":"- Check the installed `guard-core` version in your Python environment, for example with `pip show guard-core`.\n- Look for `fastapi-guard`, `flaskapi-guard` or `djapi-guard` in your dependencies and confirm which `guard-core` version they pull in.\n- Confirm whether you use the default enhanced detection mode; the sources describe the issue only for that mode.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-3.13.0-or-later","no-downstream-echo"],"who_is_affected":"Applications that use Guard Core through the FastAPI, Flask or Django adapters on versions from 1.0.0 up to 3.13.0. Exposure also needs a downstream part of the application that stores the request value and echoes it into a CRLF-tolerant response or command, which the sources describe as the condition for direct impact. Teams that do not use these adapters, or that run a newer version, can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"low"},"cost_usd":0.000822,"input_tokens":4799,"output_tokens":685,"severity_before":"low"},"analyst_status":null,"analyst_note":null,"search":"'-129303':13A,16A '-2026':12A,15A '1.0.0':121C '3.13.0':123C,224C 'adapt':43B,119C 'anchor':156C 'api':105C 'applic':81B,91B,183C,200C 'attack':68B 'base':61B 'bear':73B,190C 'behind':36B 'built':49B,133C 'built-in':48B,132C 'carriag':144C 'cmd':157C 'collaps':4A,44B,128C 'command':62B,100B,216C 'contentpreprocessor.preprocess':124C 'context':217C 'core':2A,28B,32B,102C,107C,178C 'core/detection_engine/preprocessor.py':127C 'core/handlers/suspatterns_handler.py':162C 'crlf':6A,72B,172C,212C 'crlf-bear':71B 'crlf-toler':211C 'cve':11A,14A 'decod':171C 'default':139C 'detect':51B 'detector':159C,165C 'direct':192C 'django':41B 'djapi':18B,117C 'djapi-guard':17B 'downstream':182C,197C 'emit':206C 'engin':35B,108C 'enhanc':140C 'evad':8A 'fastapi':21B,38B,112C 'fastapi-guard':20B,111C 'filter':10A 'fix':221C 'flask':39B 'flaskapi':24B,114C 'flaskapi-guard':23B 'framework':170C 'framework-decod':169C 'guard':1A,19B,22B,25B,27B,31B,42B,101C,113C,115C,118C,126C,161C,177C 'guard-cor':26B 'header':56B 'header-split':55B 'http':151C 'impact':194C 'inject':63B,158C 'input':74B 'intact':85B 'issu':219C 'let':5A 'make':163C 'match':66B,136C,168C 'matter':87B 'mode':141C 'newlin':45B,60B,84B,147C,155C,189C 'newline-anchor':154C 'newline-bas':59B 'newline-bear':188C 'packag':29B 'pass':76B,175C 'pattern':64B,135C 'payload':7A 'persist':202C 'python':30B 'raw':187C 're':205C 're-emit':204C 'reach':79B 'receiv':185C 'remov':143C 'request':9A 'requir':148C,195C 'respons':98B,214C 'return':145C 'rule':52B 'run':53B 'secur':34B,106C,193C 'send':70B 'split':57B,152C 'stack':198C 'still':184C 'stop':65B 'therefor':174C 'toler':213C 'unabl':166C 'unflag':77B,179C 'valu':95B,191C,208C 'version':223C 'whitespac':3A,130C 'write':93B","nicknames":[],"mitigations":[],"who_affected":"Applications that use Guard Core through the FastAPI, Flask or Django adapters on versions from 1.0.0 up to 3.13.0. Exposure also needs a downstream part of the application that stores the request value and echoes it into a CRLF-tolerant response or command, which the sources describe as the condition for direct impact. Teams that do not use these adapters, or that run a newer version, can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["djapiguard","fastapiguard","flaskapiguard","guardcore","low","package","python"],"campaign_type":null,"search_a":"'-129303':13A,16A '-2026':12A,15A 'collaps':4A 'core':2A 'crlf':6A 'cve':11A,14A 'evad':8A 'filter':10A 'guard':1A 'let':5A 'payload':7A 'request':9A 'whitespac':3A","search_b":"'adapt':43B 'applic':81B,91B 'attack':68B 'base':61B 'bear':73B 'behind':36B 'built':49B 'built-in':48B 'collaps':44B 'command':62B,100B 'core':28B,32B 'crlf':72B 'crlf-bear':71B 'detect':51B 'django':41B 'djapi':18B 'djapi-guard':17B 'engin':35B 'fastapi':21B,38B 'fastapi-guard':20B 'flask':39B 'flaskapi':24B 'flaskapi-guard':23B 'guard':19B,22B,25B,27B,31B,42B 'guard-cor':26B 'header':56B 'header-split':55B 'inject':63B 'input':74B 'intact':85B 'match':66B 'matter':87B 'newlin':45B,60B,84B 'newline-bas':59B 'packag':29B 'pass':76B 'pattern':64B 'python':30B 'reach':79B 'respons':98B 'rule':52B 'run':53B 'secur':34B 'send':70B 'split':57B 'stop':65B 'unflag':77B 'valu':95B 'write':93B","search_c":"'1.0.0':121C '3.13.0':123C,224C 'adapt':119C 'anchor':156C 'api':105C 'applic':183C,200C 'bear':190C 'built':133C 'built-in':132C 'carriag':144C 'cmd':157C 'collaps':128C 'command':216C 'contentpreprocessor.preprocess':124C 'context':217C 'core':102C,107C,178C 'core/detection_engine/preprocessor.py':127C 'core/handlers/suspatterns_handler.py':162C 'crlf':172C,212C 'crlf-toler':211C 'decod':171C 'default':139C 'detector':159C,165C 'direct':192C 'djapi':117C 'downstream':182C,197C 'emit':206C 'engin':108C 'enhanc':140C 'fastapi':112C 'fastapi-guard':111C 'fix':221C 'flaskapi':114C 'framework':170C 'framework-decod':169C 'guard':101C,113C,115C,118C,126C,161C,177C 'http':151C 'impact':194C 'inject':158C 'issu':219C 'make':163C 'match':136C,168C 'mode':141C 'newlin':147C,155C,189C 'newline-anchor':154C 'newline-bear':188C 'pass':175C 'pattern':135C 'persist':202C 'raw':187C 're':205C 're-emit':204C 'receiv':185C 'remov':143C 'requir':148C,195C 'respons':214C 'return':145C 'secur':106C,193C 'split':152C 'stack':198C 'still':184C 'therefor':174C 'toler':213C 'unabl':166C 'unflag':179C 'valu':191C,208C 'version':223C 'whitespac':130C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-08-25T04:09:22+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129303","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129303","severity":null,"published_at":"2026-11-16T20:19:01+00:00","modified_at":"2026-11-16T20:19:01+00:00","first_seen_at":"2026-11-16T20:38:45+00:00","fetched_at":"2026-11-16T20:38:45+00:00","note":null}],"documents":[{"id":172270,"url":"https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172271,"url":"https://github.com/Guard-Core/guard-core/releases/tag/3.13.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":172275,"url":"https://github.com/Guard-Core/guard-core/security/advisories/GHSA-w7wg-6q7v-44f2","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-08-25T04:09:22+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}