CVE-2026-7874: Langflow: weak reversible KDF exposes all stored credentials
CRITICAL CISA: TRACK*Langflow, a widely used low-code framework for building LLM and agent workflows, encrypts credentials at rest — LLM API keys, database connection strings, vector-store tokens — using a key derivation mechanism that is weak and reversible, letting anyone who can reach the stored ciphertext recover every secret the instance holds. This matters because Langflow deployments routinely centralize the crown jewels of an AI stack in one place, so a single flaw here has organization-wide blast radius across every pipeline built on the platform, not just Langflow itself. There is no CISA KEV listing, no public PoC, and no Nuclei template yet, and EPSS sits at a modest 0.164% in absolute terms (though still in the top 94th percentile of scored CVEs) — so this isn't being mass-exploited today, but the 9.1 CVSS score reflects that a network-reachable actor needs no privileges or user interaction to fully compromise confidentiality once they can access the encrypted store. Teams running Langflow OSS 1.0.0–1.10.0 should upgrade immediately per IBM's advisory, rotate every credential ever stored in the affected instance, and audit access logs for prior unauthorized retrieval of encrypted credential data.
What is the risk?
CVSS 9.1 (critical) with AC:L, PR:N, UI:N reflects a low bar to exploitation once an attacker can reach the encrypted credential data — no authentication or user interaction needed to derive plaintext secrets. Availability impact is none (this is a pure confidentiality/integrity issue via CWE-338, weak/predictable cryptographic material), so the risk is entirely about mass credential disclosure rather than service disruption. Real-world exploitation likelihood is currently moderate-to-low: EPSS absolute probability is low (0.164%), it's not in CISA KEV, and no public exploit code or scanner signature exists yet. However, the severity-to-effort ratio is unusually favorable for attackers — reversing a weak KDF is a well-understood cryptographic exercise, not a novel research problem — so risk should be treated as high given the blast radius of a credential store that aggregates secrets across an entire AI pipeline.
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/7278447) without delay. 2) Treat every credential ever stored in an affected instance as compromised — rotate all LLM API keys, database passwords, vector-store tokens, and third-party integration secrets configured in Langflow flows or global variables. 3) Restrict network and API access to the instance and its backups/exports until patched. 4) Audit access logs, API call history, and backup/export activity for signs prior credential retrieval occurred. 5) Going forward, verify that any self-hosted secrets-at-rest mechanism uses a strong, salted KDF (Argon2, scrypt, PBKDF2 with per-install randomness) rather than a static or reversible derivation, or move to envelope encryption backed by a proper KMS/secrets manager.
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-7874?
Langflow, a widely used low-code framework for building LLM and agent workflows, encrypts credentials at rest — LLM API keys, database connection strings, vector-store tokens — using a key derivation mechanism that is weak and reversible, letting anyone who can reach the stored ciphertext recover every secret the instance holds. This matters because Langflow deployments routinely centralize the crown jewels of an AI stack in one place, so a single flaw here has organization-wide blast radius across every pipeline built on the platform, not just Langflow itself. There is no CISA KEV listing, no public PoC, and no Nuclei template yet, and EPSS sits at a modest 0.164% in absolute terms (though still in the top 94th percentile of scored CVEs) — so this isn't being mass-exploited today, but the 9.1 CVSS score reflects that a network-reachable actor needs no privileges or user interaction to fully compromise confidentiality once they can access the encrypted store. Teams running Langflow OSS 1.0.0–1.10.0 should upgrade immediately per IBM's advisory, rotate every credential ever stored in the affected instance, and audit access logs for prior unauthorized retrieval of encrypted credential data.
Is CVE-2026-7874 actively exploited?
No confirmed active exploitation of CVE-2026-7874 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-7874?
1) Upgrade Langflow to the patched version referenced in IBM's advisory (https://www.ibm.com/support/pages/node/7278447) without delay. 2) Treat every credential ever stored in an affected instance as compromised — rotate all LLM API keys, database passwords, vector-store tokens, and third-party integration secrets configured in Langflow flows or global variables. 3) Restrict network and API access to the instance and its backups/exports until patched. 4) Audit access logs, API call history, and backup/export activity for signs prior credential retrieval occurred. 5) Going forward, verify that any self-hosted secrets-at-rest mechanism uses a strong, salted KDF (Argon2, scrypt, PBKDF2 with per-install randomness) rather than a static or reversible derivation, or move to envelope encryption backed by a proper KMS/secrets manager.
What systems are affected by CVE-2026-7874?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, RAG pipelines, model serving/integration credential stores, LLM API key management.
What is the CVSS score for CVE-2026-7874?
CVE-2026-7874 has a CVSS v3.1 base score of 9.1 (CRITICAL). The EPSS exploitation probability is 0.17%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0055 Unsecured Credentials AML.T0083 Credentials from AI Agent Configuration Compliance Controls Affected
What are the technical details?
Original Advisory
IBM Langflow OSS 1.0.0 through 1.10.0 Langflow could allow disclosure of all stored credentials due to the use of a weak and reversible key derivation mechanism for encryption at rest.
Exploitation Scenario
An attacker gains access to a Langflow instance's stored data — through an exposed/misconfigured deployment, a leaked database backup, or an exported flow/project file shared for collaboration or support. Rather than needing to authenticate or brute-force a strong key, they exploit the fact that the encryption key is derived via a weak, predictable KDF (CWE-338): the key can be recomputed or reversed without knowing an install-specific master secret. Using this, the attacker decrypts every stored credential in the flow definitions — LLM API keys, database passwords, vector database tokens — and pivots to consume paid LLM services at the victim's expense, exfiltrate data from connected databases and RAG vector stores, or poison downstream AI pipelines using the now-compromised service accounts.
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:N 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