CVE-2025-61913
JavaScript vulnerability analysis and mitigation

Overview

Flowise, a drag & drop user interface for building customized large language model flows, contains a critical vulnerability (CVE-2025-61913) in versions prior to 3.0.8. The vulnerability affects both WriteFileTool and ReadFileTool components, which fail to restrict file path access. This security flaw was discovered by the XlabAI Team of Tencent Xuanwu Lab and was disclosed on October 8, 2025 (NVD, GitHub Advisory).

Technical details

The vulnerability stems from improper input validation in the WriteFileTool and ReadFileTool components. These tools directly use the file_path parameter without verifying whether the path belongs to Flowise's working directory. The issue is classified as CWE-22 (Path Traversal) and has received a CVSS v3.1 score of 9.9 (Critical), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. The vulnerable code resides in packages/components/nodes/tools/WriteFile/WriteFile.ts and ReadFile/ReadFile.ts (GitHub Advisory).

Impact

The vulnerability allows authenticated attackers to read and write arbitrary files to any path in the file system. In a Docker environment, attackers could access sensitive files like /root/.flowise/encryption.key and /root/.flowise/database.sqlite. In non-Docker deployments, attackers could read critical system files such as /etc/passwd, /etc/shadow, and /root/.ssh/id_rsa. This access could ultimately lead to remote command execution (Security Online).

Mitigation and workarounds

The vulnerability has been patched in Flowise version 3.0.8. The fix introduces a new SecureFileStore class that enforces security policies by restricting file operations to a defined workspace directory, validating file paths to prevent path traversal, and checking for allowed file extensions and file sizes. Administrators are strongly advised to upgrade immediately to version 3.0.8 (NVD).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62610HIGH8.1
  • JavaScriptJavaScript
  • hono
NoYesOct 22, 2025
CVE-2025-59837HIGH7.2
  • JavaScriptJavaScript
  • astro
NoYesOct 28, 2025
CVE-2025-62713HIGH7.2
  • JavaScriptJavaScript
  • @kottster/server
NoYesOct 23, 2025
GHSA-q7jf-gf43-6x6pMEDIUM6.5
  • JavaScriptJavaScript
  • hono
NoYesOct 24, 2025
CVE-2025-62517MEDIUM5.9
  • JavaScriptJavaScript
  • rollbar
NoYesOct 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management