/

CVE-2026-91934

Severity:

HIGH RISK

(8.8)

Path Traversal (CWE-22) in Flowise SQLite Chain Node

CVE-2026-91934

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write, Potential Remote Code Execution, and Stored XSS

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A path traversal vulnerability in Flowise's SQL Database Chain node can allow authenticated attackers to write files to arbitrary locations when SQLite database paths are processed without sufficient validation. Depending on writable locations and deployment permissions, this may enable command execution through planted files or stored cross-site scripting from content placed in a web-accessible directory.

Affected context

The issue occurs in Flowise deployments that expose the SQL Database Chain node for SQLite connections and permit authenticated users to submit or influence database file paths. Risk is higher when the application process can write to system directories, executable locations, or the web root, and when those files are later interpreted or served by another component.

Exploit preconditions

  • Attack surface: The SQL Database Chain node's SQLite file-path handling
  • Required access: Authenticated access sufficient to create or configure the affected node
  • Trigger point: Processing a user-controlled or insufficiently constrained SQLite database path
  • Why exploitation is possible: Path validation does not adequately restrict traversal outside the intended storage directory, allowing file creation in locations writable by the application

Why this happens

The underlying bug is improper restriction of filesystem paths derived from user-controlled input. When an application accepts a path without canonicalizing it, enforcing an approved base directory, and rejecting traversal components, an attacker may redirect file operations to unintended locations. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • An attacker may write arbitrary files within the permissions of the Flowise process
  • Malicious files could enable command execution if placed in an executable or interpreted location
  • Content written to a web root could cause stored cross-site scripting
  • Application integrity and availability could be affected
  • Sensitive files or adjacent services may be exposed to follow-on compromise

General mitigation guidance

Mitigation generally focuses on making file handling restrictive by default and reducing trust in supplied paths.

Common defensive patterns include:

  • Resolve paths canonically and require them to remain beneath a dedicated, approved storage directory
  • Reject traversal sequences, absolute paths, links, and unexpected path components
  • Prefer opaque server-managed file identifiers over user-supplied filesystem paths
  • Apply strict allowlists for permitted database locations and file types
  • Run the application with a dedicated least-privilege account and deny write access to system and web-root directories
  • Separate uploaded or generated files from executable and publicly served content
  • Apply layered authorization and input validation before filesystem operations

How teams detect issues like this

Detection approaches can include:

  • Static analysis rules for filesystem APIs that combine user-controlled values with path operations
  • Code review checks for missing canonicalization, base-directory enforcement, or symlink handling
  • Runtime monitoring of unexpected file creation by the Flowise process
  • File-integrity monitoring for changes in web roots, startup locations, and system directories
  • Policy enforcement that restricts application write permissions to dedicated data directories
  • Automated security review tools that identify path construction and authorization gaps

Sources

SourceLink
github.comgithub.com/FlowiseAI/Flowise/security/advisories/GHSA-pwfj-wh95-7mwp
vulncheck.comvulncheck.com/advisories/flowise-before-3.1.4-remote-code-execution-via-sql-database-chain

Frequently asked

questions

It can be exploitable through the Flowise application interface when an attacker has valid authentication and can use the affected SQL Database Chain functionality. The practical impact depends on network exposure, authorization controls, and filesystem permissions.

Authentication is generally required, along with permission to create or modify the relevant node configuration or connection. The attacker must also reach a filesystem location where the Flowise process has write access.

Treat database paths as untrusted input, use server-controlled storage locations, enforce canonical containment within an approved directory, and prevent the application from writing to executable or web-served locations.

Combine strict path validation with least-privilege filesystem permissions, dedicated non-public storage, authorization checks, and monitoring for unexpected file creation.

Find out what's already
exploitable in your codebase.