CVE-2026-54687

n8n-nodes-sqlite3: Path traversal via user-controlled database file path (db_path parameter)

Published Aug 27, 2026 CVSS 4.0 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
n8n-nodes-sqlite3 is a node for operating a local SQLite database from n8n. Prior to 1.0.0, nodes/SqliteNode/v1/SqliteV1.node.ts exposes the db_path database file path as a node parameter that permits data expressions from upstream workflow input. A workflow author who maps untrusted input to db_path can allow a remote attacker to select which SQLite file the n8n process opens, enabling traversal outside the intended database location and potentially reading, creating, or overwriting files accessible to the process. This issue is fixed in version 1.0.0.

Analysis

AI-generated

Technical impact

The flaw allows an attacker who can supply untrusted data to the db_path parameter to perform path traversal beyond the intended SQLite database directory. This can let the attacker read, create, or overwrite arbitrary files that the n8n process can access, potentially exposing sensitive data or altering system files and compromising the integrity of the host. The weakness is a classic input‑validation flaw, categorized as CWE‑22.

Affected Systems

Vendor DangerBlack provides the vulnerable package n8n-node-sqlite3. Any installation of this node before version 1.0.0 is affected, as the node parameter db_path is exposed in the SqliteV1 node implementation. The issue was fixed in version 1.0.0, so installs of 1.0.0 or later are not impacted.

Risk and Exploitability

The vulnerability has a CVSS score of 6.1, indicating medium severity. EPSS information is currently unavailable, and the advisory does not list it in the CISA KEV catalog. The likely attack vector requires that an attacker be able to inject untrusted input into the workflow that controls db_path; this could happen if the workflow is exposed to external users and does not adequately sanitize input. Successful exploitation would enable an attacker to read or modify any file the n8n process can reach, which can lead to data exfiltration, tampering, or the creation of malicious files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update n8n-node-sqlite3 to version 1.0.0 or later where the bug is fixed
  • Configure the workflow so that the db_path parameter is not bound to untrusted input; restrict or validate upstream data
  • Run the n8n service with the least privilege necessary, and consider deploying it in a sandboxed environment to limit filesystem access

Generated by OpenCVE AI on August 28, 2026 at 06:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q7m3-rhxg-7vxr n8n-nodes-sqlite3 vulnerable to path traversal via user-controlled database file path (db_path parameter)
History
Type Values Removed Values Added
CPEs cpe:2.3:a:dangerblack:n8n-node-sqlite3:1.0.0:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dangerblack
Dangerblack n8n-node-sqlite3
Vendors & Products Dangerblack
Dangerblack n8n-node-sqlite3
Type Values Removed Values Added
Description n8n-nodes-sqlite3 is a node for operating a local SQLite database from n8n. Prior to 1.0.0, nodes/SqliteNode/v1/SqliteV1.node.ts exposes the db_path database file path as a node parameter that permits data expressions from upstream workflow input. A workflow author who maps untrusted input to db_path can allow a remote attacker to select which SQLite file the n8n process opens, enabling traversal outside the intended database location and potentially reading, creating, or overwriting files accessible to the process. This issue is fixed in version 1.0.0.
Title n8n-nodes-sqlite3: Path traversal via user-controlled database file path (db_path parameter)
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.1, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 28, 2026, 6:05 PM
Reserved
Jun 15, 2026, 10:53 PM
Status
Analyzed
Published
Aug 27, 2026, 8:17 PM
Modified
Sep 23, 2026, 4:24 PM