CVE-2026-6598: Langflow: cleartext auth storage exposes API keys
GHSA-9jpj-cph8-w449 MEDIUM CISA: TRACK*Langflow's project creation endpoint fails to encrypt authentication settings before writing them to disk — despite the function being named `encrypt_auth_settings` — meaning API keys and service credentials for connected LLM providers are stored in cleartext and readable by any process or user with filesystem access. While the CVSS score is medium (4.3) and the vulnerability is not in CISA's KEV catalog, Langflow deployments typically hold high-value secrets: OpenAI, Anthropic, and similar LLM API keys that grant access to expensive inference capacity and proprietary data. The package carries a risk score of 77/100 with 40 prior CVEs, and a public proof-of-concept gist is already available, lowering the bar for exploitation even as formal exploit tooling remains absent. Organizations should upgrade to Langflow 1.9.1 immediately; if patching is blocked, restrict project creation endpoint access via network policy and audit disk storage paths for cleartext credential files.
What is the risk?
Risk is moderate despite the medium CVSS score. The actual danger lies in the value of what is stored — LLM API keys — not in the complexity of exploitation, which is trivial for any authenticated low-privilege user. Network exposure with no user interaction required means any Langflow instance reachable from an internal network is vulnerable. The absence of downstream package dependents reduces supply chain blast radius, but the 40 prior CVEs in this package suggest systemic security debt. EPSS probability is very low (0.013%), but the public gist disclosure means adversaries who specifically target Langflow are already equipped.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Langflow | pip | < 1.9.1 | 1.9.1 |
Do you use Langflow? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch immediately
Upgrade langflow to >= 1.9.1, which resolves cleartext storage in
encrypt_auth_settings. -
Audit existing deployments
On affected versions (< 1.9.1), inspect the storage paths used by Langflow's project persistence layer for cleartext credential files and rotate any exposed API keys.
-
Network segmentation
If immediate patching is blocked, restrict access to the
/api/v1/projectsendpoint to authenticated internal networks only. -
Secret management
Configure Langflow to use a secrets manager (Vault, AWS Secrets Manager) rather than file-based credential storage for production deployments.
-
Detection
Monitor filesystem writes to Langflow project directories and alert on any reads of those files by processes other than the Langflow service itself.
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-6598?
Langflow's project creation endpoint fails to encrypt authentication settings before writing them to disk — despite the function being named `encrypt_auth_settings` — meaning API keys and service credentials for connected LLM providers are stored in cleartext and readable by any process or user with filesystem access. While the CVSS score is medium (4.3) and the vulnerability is not in CISA's KEV catalog, Langflow deployments typically hold high-value secrets: OpenAI, Anthropic, and similar LLM API keys that grant access to expensive inference capacity and proprietary data. The package carries a risk score of 77/100 with 40 prior CVEs, and a public proof-of-concept gist is already available, lowering the bar for exploitation even as formal exploit tooling remains absent. Organizations should upgrade to Langflow 1.9.1 immediately; if patching is blocked, restrict project creation endpoint access via network policy and audit disk storage paths for cleartext credential files.
Is CVE-2026-6598 actively exploited?
No confirmed active exploitation of CVE-2026-6598 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-6598?
1. **Patch immediately**: Upgrade langflow to >= 1.9.1, which resolves cleartext storage in `encrypt_auth_settings`. 2. **Audit existing deployments**: On affected versions (< 1.9.1), inspect the storage paths used by Langflow's project persistence layer for cleartext credential files and rotate any exposed API keys. 3. **Network segmentation**: If immediate patching is blocked, restrict access to the `/api/v1/projects` endpoint to authenticated internal networks only. 4. **Secret management**: Configure Langflow to use a secrets manager (Vault, AWS Secrets Manager) rather than file-based credential storage for production deployments. 5. **Detection**: Monitor filesystem writes to Langflow project directories and alert on any reads of those files by processes other than the Langflow service itself.
What systems are affected by CVE-2026-6598?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, LLM orchestration pipelines, AI workflow automation, multi-tenant AI platforms.
What is the CVSS score for CVE-2026-6598?
CVE-2026-6598 has a CVSS v3.1 base score of 4.3 (MEDIUM). The EPSS exploitation probability is 0.15%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0037 Data from Local System 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 security vulnerability has been detected in langflow-ai langflow up to 1.8.3. The affected element is the function create_project/encrypt_auth_settings of the file src/backend/base/Langflow/api/v1/projects.py of the component Project Creation Endpoint. Such manipulation of the argument auth_settings leads to cleartext storage in a file or on disk. The attack can be launched remotely. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Exploitation Scenario
An adversary with a valid low-privilege Langflow account — obtained through credential stuffing, phishing, or an existing internal foothold — calls the `POST /api/v1/projects` endpoint and creates a project supplying API credentials in the `auth_settings` parameter. The `encrypt_auth_settings` function stores these credentials in cleartext to disk. The attacker then either directly reads the credential files (if they have OS-level or container access), exploits a separate path traversal or file read vulnerability in Langflow to retrieve the files, or waits for an admin to misconfigure file permissions on the storage directory. With harvested API keys for services like OpenAI, the attacker exfiltrates them and begins unauthorized inference calls — burning budget, accessing proprietary system prompts, or pivoting into connected enterprise data sources.
Weaknesses (CWE)
CWE-312 Cleartext Storage of Sensitive Information
Primary
CWE-312 Cleartext Storage of Sensitive Information
Primary
CWE-313 Cleartext Storage in a File or on Disk
Primary
CWE-313 Cleartext Storage in a File or on Disk
Primary
CWE-312 — Cleartext Storage of Sensitive Information: The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.
- [Implementation, System Configuration, Operation] When storing data in the cloud (e.g., S3 buckets, Azure blobs, Google Cloud Storage, etc.), use the provider's controls to encrypt the data at rest. [REF-1297] [REF-1299] [REF-1301]
- [Implementation, System Configuration, Operation] In some systems/environments such as cloud, the use of "double encryption" (at both the software and hardware layer) might be required, and the developer might be solely responsible for both layers, instead of shared responsibility with the administrator of the broader system/environment.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/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-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