CVE-2026-8470·Python vulnerability
IBM Langflow OSS 1.0.0 through 1.10.3, 1.0.0 through 1.10.3, 1.0.0 through 1.10.3, and 1.0.0 through 1.10.3 use Python's non-cryptographic random module for generating Fernet encryption keys from user secrets under 32 characters. The deterministic Mersenne Twister PRNG produces identical keys for identical seeds, allowing attackers to reproduce encryption keys and decrypt stored API keys and authentication tokens.
- Severity
- high
- Software
- Python
- Fixed in
- 1.11.0
- Published
- 2026-08-05
Affected versions
From: 1.0.0
Until: 1.11.0
Fixed in: 1.11.0
How to fix this CVE
Upgrade Python to version 1.11.0 or later to remediate the weak cryptographic key generation flaw in Langflow. This fix replaces Python's non-cryptographic random module with a secure cryptographic alternative for generating Fernet encryption keys. Ensure all systems running affected versions are patched immediately, as the vulnerability allows attackers to predict encryption keys and decrypt sensitive API credentials stored in Langflow.
sudo dnf update python3Defensia detects this vulnerability
How to check if you are affected
- Run `python3 --version` to check your current Python version and verify it is 1.11.0 or later
- Check Langflow installation: `pip3 show langflow | grep Version` to confirm the version is 1.11.0 or above
- Review Langflow configuration files for any user secrets under 32 characters: `grep -r 'secret' /path/to/langflow/config`
- After patching, restart the Langflow service and verify encryption key generation: `python3 -c 'from langflow.security import generate_key; print(generate_key())'` should use cryptographic randomness
FAQ
What is CVE-2026-8470?
CVE-2026-8470 is a cryptographic weakness in Langflow versions 1.0.0 through 1.10.3 where weak pseudo-random key generation allows attackers to reproduce encryption keys and decrypt stored API credentials and authentication tokens.
Is CVE-2026-8470 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the attack is deterministic and straightforward, making proactive patching essential.
What versions of Langflow are affected by CVE-2026-8470?
Langflow versions 1.0.0 through 1.10.3 are vulnerable. Version 1.11.0 and later include the cryptographic fix.
How do I check if my server is vulnerable to CVE-2026-8470?
Run `pip3 show langflow | grep Version` and check if the version is between 1.0.0 and 1.10.3. If so, your installation is vulnerable and requires immediate patching.
Does Defensia detect CVE-2026-8470?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Langflow or Python is installed on a monitored server, CVE-2026-8470 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-8470. Free for 1 server.
Get started free