CVE-2026-9205: Langflow: weak Fernet key derivation exposes secrets
CRITICALIBM Langflow OSS derives the Fernet key that encrypts stored secrets—LLM provider API keys, database credentials, and other flow configuration data—through a cryptographically weak process (CWE-338), meaning that key may be predictable or reconstructable rather than truly random. Because the flaw is remotely reachable with no authentication or user interaction and carries full confidentiality, integrity, and availability impact (CVSS 9.8), a successful attacker could recover the encryption key and decrypt every credential Langflow has stored, then reuse those credentials against connected LLM APIs, vector databases, or internal systems. It is not yet in CISA KEV, has no public exploit code or Nuclei template, and CISA's SSVC decision is TRACK; EPSS sits at a low 0.23% but ranks in the 86th percentile of all scored CVEs, so it's more likely to be weaponized than most published CVEs but isn't under active exploitation yet. Patch any internet- or untrusted-network-reachable Langflow instance to the fixed release immediately, and treat this as a mandatory credential-rotation event—rotate every API key, database password, and token Langflow has encrypted, and monitor for anomalous use of those credentials against downstream AI/cloud services.
What is the risk?
Critical. The combination of network exploitability, no privileges or user interaction required, and full C/I/A impact makes this one of the more severe classes of AI-framework vulnerabilities: it doesn't just crash or leak the app itself, it undermines the confidentiality guarantee of every secret the platform was trusted to protect. Current exploitation likelihood is moderate-to-low in absolute terms (EPSS 0.23%, no KEV listing, no public PoC/scanner template, SSVC TRACK), which buys time but should not be read as low risk given the blast radius if a working exploit surfaces — weak key-derivation bugs are typically trivial to weaponize once the derivation logic is reverse-engineered from the patch diff.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Langflow | pip | — | 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) Upgrade Langflow to the patched version referenced in IBM's advisory (https://www.ibm.com/support/pages/node/7282648) as soon as it's validated in a test environment. 2) Treat all secrets previously encrypted by an affected instance as compromised: rotate every LLM provider API key, database credential, and webhook/token stored in Langflow flows. 3) Until patched, restrict network exposure of Langflow to trusted networks only (no public internet access) and place it behind authentication/VPN. 4) After patching, audit for signs of prior abuse — unexpected API usage/billing spikes on connected LLM providers, unfamiliar database connections, or anomalous flow executions. 5) Add Langflow to vulnerability/asset inventory tracking so future advisories for this package are caught automatically.
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-9205?
IBM Langflow OSS derives the Fernet key that encrypts stored secrets—LLM provider API keys, database credentials, and other flow configuration data—through a cryptographically weak process (CWE-338), meaning that key may be predictable or reconstructable rather than truly random. Because the flaw is remotely reachable with no authentication or user interaction and carries full confidentiality, integrity, and availability impact (CVSS 9.8), a successful attacker could recover the encryption key and decrypt every credential Langflow has stored, then reuse those credentials against connected LLM APIs, vector databases, or internal systems. It is not yet in CISA KEV, has no public exploit code or Nuclei template, and CISA's SSVC decision is TRACK; EPSS sits at a low 0.23% but ranks in the 86th percentile of all scored CVEs, so it's more likely to be weaponized than most published CVEs but isn't under active exploitation yet. Patch any internet- or untrusted-network-reachable Langflow instance to the fixed release immediately, and treat this as a mandatory credential-rotation event—rotate every API key, database password, and token Langflow has encrypted, and monitor for anomalous use of those credentials against downstream AI/cloud services.
Is CVE-2026-9205 actively exploited?
No confirmed active exploitation of CVE-2026-9205 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-9205?
1) Upgrade Langflow to the patched version referenced in IBM's advisory (https://www.ibm.com/support/pages/node/7282648) as soon as it's validated in a test environment. 2) Treat all secrets previously encrypted by an affected instance as compromised: rotate every LLM provider API key, database credential, and webhook/token stored in Langflow flows. 3) Until patched, restrict network exposure of Langflow to trusted networks only (no public internet access) and place it behind authentication/VPN. 4) After patching, audit for signs of prior abuse — unexpected API usage/billing spikes on connected LLM providers, unfamiliar database connections, or anomalous flow executions. 5) Add Langflow to vulnerability/asset inventory tracking so future advisories for this package are caught automatically.
What systems are affected by CVE-2026-9205?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, LLM orchestration/workflow builders, credential/secrets management, RAG pipelines.
What is the CVSS score for CVE-2026-9205?
CVE-2026-9205 has a CVSS v3.1 base score of 9.8 (CRITICAL). The EPSS exploitation probability is 0.23%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001 AI Software AML.T0049 Exploit Public-Facing Application AML.T0055 Unsecured Credentials Compliance Controls Affected
What are the technical details?
Original Advisory
IBM Langflow OSS contains a weak cryptographic key derivation vulnerability in the ensure_fernet_key() function.
Exploitation Scenario
An adversary scans for internet-facing Langflow instances (common in AI/ML dev and internal tooling deployments) and identifies a vulnerable, unpatched version. Rather than needing valid credentials, the attacker exploits the predictable ensure_fernet_key() derivation to reconstruct the instance's encryption key without any prior access or interaction from a legitimate user. With that key, the attacker decrypts the platform's secret store, extracting LLM provider API keys and database credentials embedded in saved flows. The attacker then uses those stolen credentials to rack up usage on the victim's LLM provider account, exfiltrate data from connected vector databases or internal systems, or pivot further into the victim's AI supply chain using the newly obtained access.
Weaknesses (CWE)
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Primary
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) CWE-338 — Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG): The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.
- [Implementation] Use functions or hardware which use a hardware-based random number generation for all crypto. This is the recommended solution. Use CyptGenRandom on Windows, or hw_rand() on Linux.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H References
Timeline
Related Vulnerabilities
CVE-2026-10561 10.0 Langflow: auth bypass + unauthenticated RCE (CVSS 10)
Same package: langflow CVE-2026-10134 10.0 Langflow: unauthenticated RCE via tool_code injection
Same package: langflow CVE-2026-33309 9.9 langflow: Path Traversal enables file access
Same package: langflow CVE-2026-55255 9.9 Langflow: IDOR allows cross-user flow execution
Same package: langflow CVE-2026-7873 9.9 Langflow: authenticated RCE enables credential theft
Same package: langflow