CVE-2025-68478: Langflow Arbitrary File Write Vulnerability

langflow Updated 20 Dec 2025

Summary

19/12/2025
Yes i
High
7.1

CVE-2025-68478: External Control of File Name or Path in Langflow. Affects langflow versions < 1.7.1. Fixed in 1.7.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Langflow is an open-source framework designed for building and managing workflows in AI applications. It allows users to create, modify, and store flow configurations that dictate how data is processed and managed. However, a significant vulnerability exists within its file handling mechanism, which can lead to unauthorized file writes on the server.

Vulnerability Detail

The vulnerability arises from the lack of proper validation and restrictions on file paths specified by users in the request body. Specifically, the 'fs_path' parameter can be manipulated to point to arbitrary file locations on the server. This can lead to overwriting critical files, potentially corrupting application configurations or logs. The vulnerability is exacerbated by the fact that both absolute and relative paths are accepted, allowing for directory traversal attacks. The root cause is found in the code that serializes Flow objects and writes them to the specified paths without adequate checks.

How To Fix

Latest published version: 1.14.0.dev2 as of 22 Oct 2026

pip install --upgrade "langflow==1.14.0.dev2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.1

This is the first release that contains the fix.

pip install --upgrade "langflow==1.7.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, restrict user input for the 'fs_path' parameter to a predefined set of safe paths. This can be done by implementing a whitelist of acceptable paths in your application code.

Conclusion

CVE-2025-68478 represents a serious security risk for applications using Langflow, allowing for arbitrary file writes due to insufficient path validation. It is crucial for users to update to the patched version and implement additional security measures to mitigate this risk.

See every vulnerability recorded for langflow →

Share this vulnerability

FAQ

CVE-2025-68478 is a vulnerability in Langflow that allows authenticated users to write files to arbitrary locations on the server.

Exploitation of this vulnerability can lead to unauthorized file writes, potentially corrupting important application files and disrupting functionality.

Versions prior to 1.7.1 of Langflow are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against CVE-2025-68478 using the Vulert playground.

The CVSS score for this vulnerability is 7.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for langflow.

How To Fix

Latest published version: 1.14.0.dev2 as of 22 Oct 2026

pip install --upgrade "langflow==1.14.0.dev2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.1

This is the first release that contains the fix.

pip install --upgrade "langflow==1.7.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback