# CVE-2026-33497: Langflow path traversal in profile picture endpoint

Source: https://junglewise.ai/threats/cve-2026-33497-langflow-path-traversal-in-profile-picture-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-20. Updated: 2026-06-06  
License: CC BY 4.0 with a link back

CVE-2026-33497 · Severity: high · CVSS 4 · Published 2026-03-20

Langflow, a framework for building multi-agent AI applications, contains a security flaw in how it handles profile picture requests. An unauthenticated attacker can use this flaw to read sensitive files from the server's filesystem, including the application's secret keys. Access to these keys could allow an attacker to bypass authentication entirely and take control of any user account, including administrators.

Technologies: [Langflow](https://junglewise.ai/threats/technologies/langflow), [langflow (PyPI)](https://junglewise.ai/threats/technologies/pypi-langflow). Vendors: [Langflow](https://junglewise.ai/threats/vendors/langflow), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-33497 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-33497 being exploited in the wild.

**How severe is CVE-2026-33497?** High severity, with a CVSS score of 4, published 20 March 2026.

**Which products and versions are affected?** Langflow < 1.7.1; langflow (PyPI) ECOSYSTEM:introduced=0,fixed=1.7.1.

**Is there a fix for CVE-2026-33497?** Yes. langflow (PyPI): upgrade to 1.7.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-33497 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-33497?** Check whether you run Langflow or langflow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- langflow (PyPI): upgrade to 1.7.1 or later

  ```sh
  pip install "langflow>=1.7.1"
  ```


## Technical details

A path traversal vulnerability exists in the `download_profile_picture` function within `src/backend/base/langflow/api/v1/files.py`. The application fails to sanitize the `folder_name` and `file_name` path parameters before concatenating them to a base directory path. An unauthenticated attacker can use `../` sequences to escape the intended directory and read arbitrary files, such as the `secret_key` file used for JWT signing. This exfiltration enables the forgery of administrative tokens. The issue is fixed in version 1.7.1 by implementing typed path validation and strict path containment checks using `Path.is_relative_to()`.

## Affected products

- langflow-ai langflow < 1.7.1

## Identifiers

- CVE-2026-33497
- GHSA-ph9w-r52h-28p7
- PYSEC-2026-81

## Timeline

- 2026-03-20: disclosed
- 2026-03-20: advisory
- 2026-03-20: patched: Fixed in version 1.7.1

## References

- [https://api.github.com/users/r00tuser111](https://api.github.com/users/r00tuser111)
- [https://github.com/r00tuser111](https://github.com/r00tuser111)
- [https://api.github.com/users/r00tuser111/gists%7B/gist_id%7D](https://api.github.com/users/r00tuser111/gists%7B/gist_id%7D)
- [https://api.github.com/users/r00tuser111/repos](https://api.github.com/users/r00tuser111/repos)
- [https://avatars.githubusercontent.com/u/22544959?v=4](https://avatars.githubusercontent.com/u/22544959?v=4)
- [https://api.github.com/users/r00tuser111/events%7B/privacy%7D](https://api.github.com/users/r00tuser111/events%7B/privacy%7D)

## Related threats

- [Langflow SSRF in URL-taking components](https://junglewise.ai/threats/langflow-ssrf-in-url-taking-components-protection-disabled-by-default-db7cac37)
- [Langflow IP spoofing in MCP configuration installation](https://junglewise.ai/threats/cve-2026-105741-langflow-is-a-tool-for-building-and-deploying-ai-powered-agents)
- [Langflow path traversal and cross-user disclosure in MCP resources](https://junglewise.ai/threats/cve-2026-105699-langflow-is-a-tool-for-building-and-deploying-ai-powered-agents)
- [Langflow authorization bypass in flow API endpoints](https://junglewise.ai/threats/cve-2026-105698-langflow-is-a-tool-for-building-and-deploying-ai-powered-agents)
- [Langflow MCP stdio command injection](https://junglewise.ai/threats/cve-2026-105697-langflow-is-a-tool-for-building-and-deploying-ai-powered-agents)
