CVE-2026-6597: langflow: Plaintext credential storage via Flow API
GHSA-5jjf-wcvf-923w LOW CISA: TRACK*Langflow versions up to 1.8.3 fail to properly sanitize API keys during flow processing — the remove_api_keys and has_api_terms functions leave LLM provider credentials (OpenAI, Anthropic, etc.) stored in plaintext within exported flow configurations. While the CVSS score of 2.7 reflects the high-privilege prerequisite, the real-world blast radius is larger than the score suggests: any admin account compromise in a langflow deployment leads directly to theft of all embedded API keys, enabling cost harvesting at the victim's expense or data exfiltration via LLM inference calls. EPSS is effectively zero (0.0001) and this CVE is not in CISA KEV, so broad active exploitation is unlikely, but a public proof-of-concept is referenced on GitHub and no patched version currently exists. Mitigate now by rotating any API keys stored in langflow flows, restricting admin access to trusted internal networks, and moving credentials to a secrets manager rather than embedding them in flow configs.
What is the risk?
Low CVSS severity (2.7) is driven by the PR:H requirement, but the contextual risk for AI deployments is meaningfully higher. Langflow flows routinely embed third-party LLM API keys that represent substantial monthly API spend and access to sensitive data pipelines. Package risk score of 77/100 and 40 prior CVEs in this package signal a pattern of security hygiene issues. No patch exists, a public PoC lowers the exploitation bar post-compromise, and the CISA SSVC TRACK_STAR designation confirms it warrants monitoring even absent active KEV listing.
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?
1 step-
1) Immediately export and audit all langflow flow configurations for embedded plaintext API keys. 2) Rotate any exposed LLM provider API keys (OpenAI, Anthropic, Google, etc.) regardless of suspected exploitation. 3) Restrict langflow admin access to internal networks or VPN — since PR:H is required, preventing admin account compromise is the primary control. 4) Replace embedded keys with environment variable references or integrate a secrets manager (HashiCorp Vault, AWS Secrets Manager). 5) Monitor LLM provider usage dashboards for anomalous API consumption. 6) Track the langflow release channel for a patched version; no fix exists for <= 1.8.3.
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-6597?
Langflow versions up to 1.8.3 fail to properly sanitize API keys during flow processing — the remove_api_keys and has_api_terms functions leave LLM provider credentials (OpenAI, Anthropic, etc.) stored in plaintext within exported flow configurations. While the CVSS score of 2.7 reflects the high-privilege prerequisite, the real-world blast radius is larger than the score suggests: any admin account compromise in a langflow deployment leads directly to theft of all embedded API keys, enabling cost harvesting at the victim's expense or data exfiltration via LLM inference calls. EPSS is effectively zero (0.0001) and this CVE is not in CISA KEV, so broad active exploitation is unlikely, but a public proof-of-concept is referenced on GitHub and no patched version currently exists. Mitigate now by rotating any API keys stored in langflow flows, restricting admin access to trusted internal networks, and moving credentials to a secrets manager rather than embedding them in flow configs.
Is CVE-2026-6597 actively exploited?
No confirmed active exploitation of CVE-2026-6597 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-6597?
1) Immediately export and audit all langflow flow configurations for embedded plaintext API keys. 2) Rotate any exposed LLM provider API keys (OpenAI, Anthropic, Google, etc.) regardless of suspected exploitation. 3) Restrict langflow admin access to internal networks or VPN — since PR:H is required, preventing admin account compromise is the primary control. 4) Replace embedded keys with environment variable references or integrate a secrets manager (HashiCorp Vault, AWS Secrets Manager). 5) Monitor LLM provider usage dashboards for anomalous API consumption. 6) Track the langflow release channel for a patched version; no fix exists for <= 1.8.3.
What systems are affected by CVE-2026-6597?
This vulnerability affects the following AI/ML architecture patterns: LLM workflow automation, agent frameworks, multi-model orchestration pipelines, API integration pipelines.
What is the CVSS score for CVE-2026-6597?
CVE-2026-6597 has a CVSS v3.1 base score of 2.7 (LOW). The EPSS exploitation probability is 0.32%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0049 Exploit Public-Facing Application AML.T0055 Unsecured Credentials AML.T0083 Credentials from AI Agent Configuration AML.T0106 Exploitation for Credential Access Compliance Controls Affected
What are the technical details?
Original Advisory
A weakness has been identified in langflow-ai langflow up to 1.8.3. Impacted is the function remove_api_keys/has_api_terms of the file src/backend/base/langflow/api/utils/core.py of the component Flow Using API. This manipulation causes unprotected storage of credentials. The attack can be initiated remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Exploitation Scenario
An attacker gains admin access to a public-facing langflow instance via credential stuffing against a reused password or phishing of a developer account. Using their admin session, they call the Flow API to export all saved flows. Due to the flawed remove_api_keys sanitization logic, the export returns flows containing plaintext OpenAI and Anthropic API keys. The attacker harvests these keys and begins running high-throughput inference requests billed to the victim organization, or uses the keys to query internal data indexed in connected vector stores, exfiltrating proprietary business data.
Weaknesses (CWE)
CWE-255
Primary
CWE-256 Plaintext Storage of a Password
Primary
CWE-256 Plaintext Storage of a Password
Primary
CWE-256 — Plaintext Storage of a Password: The product stores a password in plaintext within resources such as memory or files.
- [Architecture and Design] Avoid storing passwords in easily accessible locations.
- [Architecture and Design] Consider storing cryptographic hashes of passwords as an alternative to storing in plaintext.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N 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-2026-33017 9.8 langflow: Code Injection enables RCE
Same package: langflow CVE-2024-37014 9.8 Langflow: unauthenticated RCE via custom component API
Same package: langflow