CVE-2026-33497
HIGHSeverity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
4DescriptionGitHub Advisory
Summary
In the download_profile_picture function of the /profile_pictures/{folder_name}/{file_name} endpoint, the folder_name and file_name parameters are not strictly filtered, which allows the secret_key to be read across directories.
Details
src/backend/base/langflow/api/v1/files.py
storage local get_file, directly concatenate flow_id and file_name !image
PoC
Impact
secret_key is used for jwt authentication. Attackers can forge authentication tokens and log into the system.
AnalysisAI
Path traversal in Langflow's /profile_pictures endpoint allows unauthenticated remote attackers to read the application's secret_key through directory traversal in the folder_name parameter. Since the secret_key is used for JWT authentication, attackers can forge valid tokens to gain unauthorized system access. Public exploit code exists for this vulnerability and no patch is currently available.
Technical ContextAI
Langflow is a Python-based low-code application builder for LangChain workflows, distributed as a pip package (pkg:pip/langflow). The vulnerability exists in the download_profile_picture function within src/backend/base/langflow/api/v1/files.py, where the folder_name and file_name parameters lack proper input validation. This is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) vulnerability, where unsanitized user input is directly concatenated into file path operations. The storage.local.get_file method combines flow_id and file_name without canonicalization or path traversal filtering, allowing attackers to use directory traversal sequences like '../' to escape the intended profile_pictures directory and access sensitive files such as the JWT secret_key stored in the application's file system.
RemediationAI
Immediately upgrade Langflow to the patched version specified in the GitHub security advisory at https://github.com/langflow-ai/langflow/security/advisories/GHSA-ph9w-r52h-28p7 or the corresponding National Vulnerability Database advisory at https://github.com/advisories/GHSA-ph9w-r52h-28p7. The fix should implement strict input validation on folder_name and file_name parameters, rejecting any path traversal sequences and canonicalizing file paths before file system operations. Until patching is completed, implement immediate mitigations including restricting network access to the /api/v1/files endpoint to authenticated users only via reverse proxy rules, deploying web application firewall rules to block requests containing '../' or encoded traversal sequences in the profile_pictures path, rotating the existing secret_key to invalidate any previously exfiltrated tokens, and monitoring authentication logs for suspicious JWT token usage patterns. If Langflow is exposed to untrusted networks, consider temporarily disabling the profile picture functionality entirely until patches are applied.
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-ph9w-r52h-28p7