PyPI: langflow
CVE-2026-33497
Safety vulnerability ID: SFTY-20260320-94626
Safety legacy ID: pyup.io-90208
Affected versions of the langflow package are vulnerable to Path Traversal due to improper sanitization of user-controlled path parameters. The download_profile_picture function in the /profile_pictures/{folder_name}/{file_name} endpoint does not strictly filter the folder_name and file_name parameters, allowing path elements such as .. to escape the intended directory and access sensitive files, including the secret_key.
Overview
langflow: /profile_pictures/{folder_name}/{file_name} endpoint file reading
Advisory
Affected versions of the langflow package are vulnerable to Path Traversal due to improper sanitization of user-controlled path parameters. The download_profile_picture function in the /profile_pictures/{folder_name}/{file_name} endpoint does not strictly filter the folder_name and file_name parameters, allowing path elements such as .. to escape the intended directory and access sensitive files, including the secret_key.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260320-94626/CVE-2026-33497
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-ph9w-r52h-28p7
- https://nvd.nist.gov/vuln/detail/CVE-2026-33497
- https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-81.yaml
- https://github.com/advisories/GHSA-ph9w-r52h-28p7
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
