
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-54687 is a path traversal vulnerability in the n8n-nodes-sqlite3 npm package (also published as n8n-node-sqlite3 by DangerBlack), a community node for operating a local SQLite database from the n8n workflow automation platform. In versions prior to 1.0.0, the db_path parameter in nodes/SqliteNode/v1/SqliteV1.node.ts was exposed as a workflow node parameter that accepted n8n data expressions, allowing untrusted upstream input to control which SQLite file the n8n process opens. The vulnerability was reported by dyingman1 via coordinated disclosure on 2026-04-26, published as a GitHub Security Advisory (GHSA-q7m3-rhxg-7vxr) on June 26, 2026, and added to the GitHub Advisory Database on August 27, 2026. It carries a CVSS v4.0 base score of 6.1 (Medium) (GitHub Advisory).
The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory — Path Traversal): the db_path node parameter lacked the noDataExpression: true flag, meaning n8n would evaluate workflow expressions within it and substitute attacker-controlled values at runtime. In multi-tenant or user-facing n8n deployments, a workflow author could wire a Webhook or other untrusted input node directly to the db_path field; when the workflow executes, the n8n process opens whichever file path the attacker supplies, enabling traversal outside the intended database directory. The fix (commit 145a887) adds noDataExpression: true to the db_path parameter definition, preventing expression evaluation; the v2 node architecture additionally moves the database path into a server-side credential (sqliteCredentialsApi) that is never controllable by workflow input data (GitHub Advisory, Fix Commit).
Successful exploitation allows a remote attacker to redirect the SQLite node to open arbitrary files accessible to the n8n process, enabling unauthorized reading of sensitive files (e.g., configuration files, credentials, other databases), creation of new SQLite files at arbitrary paths, or overwriting existing files — impacting confidentiality, integrity, and availability of data on the host. The risk is highest in multi-tenant or user-facing n8n deployments where workflow authors may inadvertently or maliciously wire untrusted external input to the db_path parameter; standalone deployments with only trusted workflow authors are not meaningfully affected (GitHub Advisory, Security Advisory).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the advisory publication date. Exploitation requires a specific precondition: a workflow author must have explicitly mapped untrusted input (e.g., from a Webhook node) to the db_path parameter, meaning the attack surface is limited to misconfigured multi-tenant deployments. No threat actor attribution, CISA KEV listing, or EPSS score data is currently available for this CVE (GitHub Advisory).
n8n-nodes-sqlite3 version < 1.0.0 where a workflow has been configured to accept external input (e.g., via a Webhook node).db_path parameter of the SQLite node is set to an n8n expression referencing upstream data, such as {{ $json["path"] }}.{"path": "../../etc/passwd"} or {"path": "/home/n8n/.n8n/config"}.db_path, and the SQLite library opens (or creates/overwrites) the specified file.db_path values containing ../, absolute paths outside the expected database directory, or paths referencing sensitive system files (e.g., /etc/passwd, .n8n/config).../, ..\).lsof or /proc/<pid>/fd on Linux systems.Upgrade n8n-nodes-sqlite3 to version 1.0.0 or later, which resolves the vulnerability in two ways: the v1 node adds noDataExpression: true to the db_path parameter (commit 145a887), and the new v2 node architecture moves the database path into a server-side credential that cannot be influenced by workflow input data. As an interim workaround for deployments that cannot upgrade immediately, audit all workflows using the SQLite node and ensure the db_path parameter is set to a static value rather than an n8n expression referencing external input. Multi-tenant deployments should restrict which users can author or modify workflows containing the SQLite node (GitHub Advisory, Fix Commit, PR #25).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."