Skip to main content

CVE-2026-33497

HIGH
Path Traversal (CWE-22)
2026-03-20 https://github.com/langflow-ai/langflow GHSA-ph9w-r52h-28p7
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HTTP request with path traversal payload
  2. Exploit
    Send request to /profile_pictures endpoint
  3. Execution
    Bypass folder_name/file_name filters
  4. Impact
    Read secret_key from arbitrary directory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker can exploit the /profile_pictures/{folder_name}/{file_name} endpoint in Langflow by using path traversal (e.g., ../ sequences) in folder_name or file_name parameters to read arbitrary files including secret_key. No authentication, user interaction, or special configuration required.

Impact

This vulnerability presents critical real-world risk despite the absence of formal CVSS scoring. The publicly disclosed proof-of-concept demonstrates trivial exploitation requiring only a curl command with path traversal syntax, indicating low attack complexity and no required privileges or user interaction. The technical impact is severe as compromising the JWT secret_key enables complete authentication bypass, allowing attackers to impersonate any user including administrators. While no EPSS score or KEV listing is currently available, the combination of public POC availability, low exploitation barrier, and high technical impact (authentication bypass leading to potential complete system compromise) makes this a genuine high-priority issue. The vulnerability is automatable and requires immediate attention for any internet-exposed Langflow instances, particularly in production environments where authentication integrity is critical.

Exploit ScenarioDerived

An unauthenticated remote attacker crafts a malicious HTTP request to the vulnerable endpoint using path traversal syntax, such as 'GET /api/v1/files/profile_pictures/../secret_key', to escape the intended directory and retrieve the JWT secret_key file from the application's file system. With the exfiltrated secret_key, the attacker generates valid JWT tokens for any user account including administrators, gaining full unauthorized access to the Langflow instance. The attacker can then modify AI workflows, access sensitive data processed by the application, or leverage the compromised instance as a pivot point for further attacks on connected systems.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

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.

Earlier versions of this analysis (1)
v1 Mar 20, 2026 - 21:01 CVSS 7.5

A path traversal vulnerability in Langflow's profile picture download endpoint allows unauthenticated attackers to read arbitrary files including the secret_key used for JWT authentication. The affected product is the Langflow Python package distributed via PyPI. A proof-of-concept exploit has been publicly disclosed demonstrating secret_key exfiltration via directory traversal, enabling attackers to forge authentication tokens and gain unauthorized system access.

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.

Affected Packages

pypi langflow fix: 1.7.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Mar 24, 2026 - 19:20 vuln.today
Public exploit code
CVE Published
Mar 20, 2026 - 20:56 nvd
HIGH 7.5

DescriptionGitHub 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

!image

storage local get_file, directly concatenate flow_id and file_name !image

PoC

curl --path-as-is 'http://127.0.0.1:7860/api/v1/files/profile_pictures/../secret_key' ```

Impact

secret_key is used for jwt authentication. Attackers can forge authentication tokens and log into the system.

Executive ViewAI

Why It Matters

A critical vulnerability in Langflow allows attackers to steal authentication secrets without credentials, potentially enabling unauthorized system access and data breaches. Organizations using Langflow are at immediate risk until remediation is deployed.

Business Impact: Severe
Compensating Controls

Implement Web Application Firewall (WAF) rules to block requests to the profile picture download endpoint containing path traversal patterns (../, ..\, etc.); restrict network access to Langflow instances via firewall rules limiting to trusted sources only; disable the profile picture download feature if not operationally required; implement request rate limiting and monitoring on authentication endpoints; rotate JWT secrets immediately and implement secret rotation policies; deploy runtime application self-protection (RASP) if available.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA POC (1) GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

pkg:pip/langflow

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy