CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-54687

CVE-2026-54687: Path Traversal via User-Controlled Database File Path in n8n-nodes-sqlite3

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 27, 2026·5 min read·41 visits

Executive Summary (TL;DR)

A path traversal vulnerability in n8n-nodes-sqlite3 prior to v1.0.0 allows remote attackers to read, create, or overwrite arbitrary database-compatible files via a manipulated db_path parameter.

Prior to version 1.0.0, the n8n-nodes-sqlite3 integration exposed the db_path parameter as an unrestricted node parameter. By default, n8n node parameters allow the evaluation of dynamic data expressions, meaning untrusted external input could be mapped to the database path. This vulnerability allows an external attacker to control which SQLite database file the n8n backend process attempts to open, leading to directory traversal outside of the intended directory context.

Vulnerability Overview

The n8n-nodes-sqlite3 package is a community-contributed integration for n8n, a popular workflow automation platform. This node allows workflows to interact directly with a local SQLite database file on the hosting file system. In versions prior to 1.0.0, the node exposed the database path via a parameter named db_path. By default, n8n parameters support dynamic data expression evaluation, which lets input fields parse and resolve values derived from upstream nodes.\n\nThis design introduces a path traversal vulnerability (CWE-22) when workflow authors configure the node to dynamically set the database file path using untrusted external inputs. For example, if webhooks or HTTP triggers feed user-controlled parameters directly into the db_path configuration, an attacker can manipulate the file path. This manipulation allows the backend process to interact with arbitrary SQLite-compatible databases across the system, restricted only by the privileges of the underlying n8n process.

Root Cause Analysis

The root cause of this vulnerability lies in the default handling of input fields in the n8n integration framework combined with insufficient input validation. In the legacy implementation (nodes/SqliteNode/v1/SqliteV1.node.ts), the db_path property was declared as a standard string parameter. In the n8n node ecosystem, string parameters are implicitly configured to allow dynamic data expressions. This design means that the n8n runtime evaluates any syntax enclosed within curly braces before passing the computed string to the node's underlying execution logic.\n\nWhen the SQLite node processes this parameter, it utilizes the evaluated string directly as the file path argument for the SQLite database driver. Because there is no check or sanitization to ensure the path remains restricted to a designated directory, an attacker who can inject data into the dynamic expression can traverse the directory structure. This configuration allows arbitrary file system navigation, leading to improper limitation of a pathname to a restricted directory (CWE-22).

Code Analysis

To understand the flaw and its remediation, examine the vulnerable implementation in SqliteV1.node.ts. The original parameter definition exposed db_path without restrictive properties, allowing expression evaluation by default.\n\ntypescript\n// Before patch\n{\n\tdisplayName: 'Database Path',\n\tname: 'db_path',\n\ttype: 'string',\n\tdefault: '',\n\tplaceholder: '/path/to/database.sqlite',\n\tdescription: 'The path to the SQLite database file',\n\trequired: true,\n}\n\n\nThe patch resolves the issue by introducing the noDataExpression: true property to the parameter configuration block. This property explicitly instructs the n8n execution engine to treat the input as a static literal string and bypass any template expression evaluation.\n\ntypescript\n// After patch\n{\n\tdisplayName: 'Database Path',\n\tname: 'db_path',\n\ttype: 'string',\n\tdefault: '',\n\tplaceholder: '/path/to/database.sqlite',\n\tdescription: 'The path to the SQLite database file',\n\trequired: true,\n\tnoDataExpression: true, // Prevents expression evaluation and dynamics\n}\n\n\nBy setting this flag, any input matching expression syntax (such as {{ ... }}) is treated strictly as a literal, neutralizing the traversal vector. Additionally, the node's version 2 (V2) implementation introduces a credential-based architecture where the database path is stored securely within backend credentials configuration rather than dynamic node properties.

Exploitation & Proof of Concept Analysis

Exploitation requires a specific pre-existing workflow pattern where a workflow author maps untrusted external input (such as an incoming query string or POST request payload) directly to the db_path parameter. Under these circumstances, the exploitation flow proceeds as follows:\n\nmermaid\ngraph LR\n Attacker["Attacker Payload"] -->|1. Webhook Request| Webhook["Webhook Trigger"]\n Webhook -->|2. Untrusted db_path Expression| SqliteNode["SqliteV1 Node"]\n SqliteNode -->|3. Traversed File Path| SQLite["SQLite Driver"]\n SQLite -->|4. File Interaction| TargetFile["Target Database File"]\n\n\nFirst, the attacker crafts an HTTP request to a webhook trigger configured in n8n, containing a traversal string in the query parameter (e.g., ?path=../../../../var/lib/conf.db). When the workflow executes, the webhook node passes this parameter to the vulnerable n8n-nodes-sqlite3 node. The n8n engine evaluates the expression {{ $json.query.path }} and passes the traversed path to the SQLite driver. The driver then attempts to open or initialize the database file at the specified path. Depending on the SQL queries executed in subsequent node steps, the attacker can read from or write to arbitrary files, provided they are structured as SQLite databases or can be parsed as such.

Impact & Threat Assessment

The impact of this vulnerability is classified as Medium, with a CVSS v4.0 base score of 6.1. This rating reflects the high attack complexity and specific operational requirements, as exploitation is not possible in the default configuration. A successful exploit requires a workflow to be explicitly configured to accept dynamic database paths from untrusted input sources.\n\nIf these prerequisites are met, the vulnerability poses significant confidentiality and integrity risks. An attacker can read sensitive information stored in other SQLite databases on the system or write arbitrary database files. This action could result in file corruption, resource exhaustion, or the overwrite of critical configuration databases accessible to the n8n execution environment. The vulnerability does not directly extend past the host process boundary, meaning subsequent system impact is limited.

Remediation & Hardening Guidance

To remediate this vulnerability, administrators and developers must take immediate action. The primary remediation strategy is upgrading the n8n-nodes-sqlite3 package to version 1.0.0 or higher. This update applies the noDataExpression restriction to the legacy V1 node and introduces secure V2 node architectures.\n\nAdditionally, organizations should audit existing workflows for dangerous patterns. Workflows can be analyzed by searching their JSON definitions for dynamic expressions mapped to the db_path parameter. If immediate patching is not possible, administrators should manually replace dynamic expressions in the db_path field with hardcoded, absolute paths to approved directories, thereby preventing any runtime user control over the target file location.

Official Patches

DangerBlackSecurity Advisory

Fix Analysis (1)

Technical Appendix

CVSS Score
6.1/ 10
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

Affected Systems

n8n-nodes-sqlite3

Affected Versions Detail

Product
Affected Versions
Fixed Version
n8n-nodes-sqlite3
DangerBlack
< 1.0.01.0.0
AttributeDetail
CWE IDCWE-22
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionPassive
EPSS ScoreN/A
Exploit StatusProof-of-Concept / Conceptual
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1083File and Directory Discovery
Discovery
T1005Data from Local System
Collection
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Vulnerability Timeline

Vulnerability identified and fix commit pushed
2026-02-15
Security advisory published and version 1.0.0 released
2026-02-16

References & Sources

  • [1]Fix Commit
  • [2]Pull Request
  • [3]GitHub Security Advisory
  • [4]Repository

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•20 minutes ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
3 views•11 min read
•about 2 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read
•1 day ago•CVE-2026-12411
8.4

CVE-2026-12411: Cross-Guest Volume Hijack via DevLXD Device PATCH in Canonical LXD

CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.

Amit Schendel
Amit Schendel
7 views•10 min read
•1 day ago•CVE-2026-105769
9.3

CVE-2026-105769: Azure Entra ID Token Exfiltration in Kaniko via Unanchored ACR Hostname Regex

CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.

Amit Schendel
Amit Schendel
11 views•11 min read
•1 day ago•CVE-2026-62300
6.5

CVE-2026-62300: Uncontrolled Resource Consumption in filecoin-pin Daemon

CVE-2026-62300 is an uncontrolled resource consumption vulnerability (CWE-400) affecting the daemon mode of filecoin-pin in versions up to and including 1.1.0. The daemon implements the IPFS Pinning Service API to store content on Filecoin's Proof of Data Possession (PDP) service. Due to the absence of rate limits, concurrency caps, execution timeouts, and Directed Acyclic Graph (DAG) traversal limits, an authenticated user—or an unauthenticated user when authentication is disabled—can exhaust system resources via crafted POST /pins requests.

Amit Schendel
Amit Schendel
9 views•11 min read