CVE-2026-6599: Langflow: MCP config injection via X-Forwarded-For header
GHSA-v66p-f7x3-4794 MEDIUM CISA: TRACK*CVE-2026-6599 is an injection vulnerability in Langflow's Model Context Protocol configuration API where the X-Forwarded-For header is not properly sanitized in the get_client_ip/install_mcp_config functions, enabling any low-privilege authenticated user to inject malicious input into MCP server configuration logic. Despite the medium CVSS score of 6.3, this sits in the top 86th EPSS percentile and the CVE description confirms a public exploit exists via GitHub gist — critically, the vendor has not responded and no patch exists for versions up to 1.8.3. The MCP attack surface is particularly high-stakes: a successful injection could register an adversary-controlled MCP server, turning every AI agent in the Langflow deployment into an unwitting executor of attacker-crafted tool responses. Immediate action should include WAF rules stripping or normalizing X-Forwarded-For headers before reaching Langflow, restricting MCP configuration API endpoints to trusted networks, and auditing existing MCP server registrations for unauthorized entries.
What is the risk?
Risk is elevated beyond the medium CVSS rating due to the combination of no available patch for affected versions, a public PoC exploit, TRACK_STAR SSVC classification, and the strategic position of the MCP configuration API as a trust boundary between AI agents and external tools. Low privileges required (PR:L) means any authenticated Langflow user — including developers and contributors in shared environments — can attempt exploitation, significantly expanding the attack surface in multi-tenant deployments. The package carries a risk score of 77/100 with 40 known CVEs, indicating a persistent pattern of security deficiencies. For organizations running Langflow as their primary AI agent builder, this represents a structural risk to the entire agentic workflow layer.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Langflow | pip | <= 1.8.3 | No patch |
Do you use Langflow? You're affected.
How severe is it?
What is the attack surface?
What should I do?
6 steps-
PATCH
No official patch available — monitor Langflow releases actively and upgrade immediately when a fixed version is published.
-
IMMEDIATE WORKAROUND
Configure reverse proxy or WAF to strip and normalize X-Forwarded-For headers before they reach Langflow, preventing header injection into get_client_ip.
-
RESTRICT ENDPOINT
If MCP integration is not actively required, disable or block access to /api/v1/mcp_projects endpoints at the network layer.
-
NETWORK SEGMENTATION
Restrict Langflow API access to trusted internal networks and avoid exposing MCP configuration endpoints to the public internet or untrusted users.
-
AUDIT
Immediately review existing MCP server registrations in all Langflow deployments for unauthorized or unexpected external host entries.
-
MONITOR
Enable structured logging on Langflow API endpoints; alert on anomalous X-Forwarded-For header values and unexpected changes to MCP configuration.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-6599?
CVE-2026-6599 is an injection vulnerability in Langflow's Model Context Protocol configuration API where the X-Forwarded-For header is not properly sanitized in the get_client_ip/install_mcp_config functions, enabling any low-privilege authenticated user to inject malicious input into MCP server configuration logic. Despite the medium CVSS score of 6.3, this sits in the top 86th EPSS percentile and the CVE description confirms a public exploit exists via GitHub gist — critically, the vendor has not responded and no patch exists for versions up to 1.8.3. The MCP attack surface is particularly high-stakes: a successful injection could register an adversary-controlled MCP server, turning every AI agent in the Langflow deployment into an unwitting executor of attacker-crafted tool responses. Immediate action should include WAF rules stripping or normalizing X-Forwarded-For headers before reaching Langflow, restricting MCP configuration API endpoints to trusted networks, and auditing existing MCP server registrations for unauthorized entries.
Is CVE-2026-6599 actively exploited?
No confirmed active exploitation of CVE-2026-6599 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-6599?
1. PATCH: No official patch available — monitor Langflow releases actively and upgrade immediately when a fixed version is published. 2. IMMEDIATE WORKAROUND: Configure reverse proxy or WAF to strip and normalize X-Forwarded-For headers before they reach Langflow, preventing header injection into get_client_ip. 3. RESTRICT ENDPOINT: If MCP integration is not actively required, disable or block access to /api/v1/mcp_projects endpoints at the network layer. 4. NETWORK SEGMENTATION: Restrict Langflow API access to trusted internal networks and avoid exposing MCP configuration endpoints to the public internet or untrusted users. 5. AUDIT: Immediately review existing MCP server registrations in all Langflow deployments for unauthorized or unexpected external host entries. 6. MONITOR: Enable structured logging on Langflow API endpoints; alert on anomalous X-Forwarded-For header values and unexpected changes to MCP configuration.
What systems are affected by CVE-2026-6599?
This vulnerability affects the following AI/ML architecture patterns: Agent frameworks, MCP-connected AI agents, LLM orchestration pipelines, Visual AI workflow builders, Multi-tool agentic applications.
What is the CVSS score for CVE-2026-6599?
CVE-2026-6599 has a CVSS v3.1 base score of 6.3 (MEDIUM). The EPSS exploitation probability is 0.23%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.005 AI Agent Tool AML.T0049 Exploit Public-Facing Application AML.T0053 AI Agent Tool Invocation AML.T0081 Modify AI Agent Configuration Compliance Controls Affected
What are the technical details?
Original Advisory
A vulnerability was detected in langflow-ai langflow up to 1.8.3. The impacted element is the function get_client_ip/install_mcp_config of the file src/backend/base/langflow/api/v1/mcp_projects.py of the component Model Context Protocol Configuration API. Performing a manipulation of the argument X-Forwarded-For results in injection. The attack may be initiated remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Exploitation Scenario
An attacker with a low-privilege Langflow account — such as a developer with basic platform access — crafts an API request to the install_mcp_config endpoint containing a manipulated X-Forwarded-For header with an injection payload. Exploiting the improper neutralization in get_client_ip, the attacker either bypasses IP-based access restrictions to access privileged configuration features or injects a malicious MCP server URL into the agent's tool configuration. Once the rogue MCP server is registered, any AI agent in Langflow invoking MCP tools will establish a connection to the attacker's controlled server. The attacker's server returns crafted tool responses embedding prompt injections, exfiltrates sensitive data passed through agent context windows, or instructs the agent to execute destructive or unauthorized operations against systems the agent has legitimate access to.
Weaknesses (CWE)
CWE-707 Improper Neutralization
Primary
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Primary
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Primary
CWE-707 — Improper Neutralization: The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L References
Timeline
Related Vulnerabilities
CVE-2026-10561 10.0 Langflow: auth bypass + unauthenticated RCE (CVSS 10)
Same package: langflow CVE-2026-55255 9.9 Langflow: IDOR allows cross-user flow execution
Same package: langflow CVE-2026-33309 9.9 langflow: Path Traversal enables file access
Same package: langflow CVE-2024-37014 9.8 Langflow: unauthenticated RCE via custom component API
Same package: langflow CVE-2026-33017 9.8 langflow: Code Injection enables RCE
Same package: langflow