Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted request to exposed n8n webhook
-
ExploitWorkflow expression maps request data to SQLite db_path
-
Executionbetter-sqlite3 opens attacker-controlled file path
-
ImpactRead sensitive system files or overwrite files as n8n process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two simultaneous conditions: (1) n8n-nodes-sqlite3 must be at a version prior to 1.0.0, and (2) a workflow must be explicitly configured by its author to map untrusted external input-such as a webhook body field, form value, or API parameter-directly to the SQLite node's db_path parameter using an n8n expression. Standalone deployments where only trusted internal users author and run workflows are not vulnerable, as no untrusted party can influence the db_path value. Exploitation scope is bounded by the OS-level permissions of the n8n process user account; files owned by root or other users are protected if n8n runs as an unprivileged service account. No special network position or authentication is required from the attacker's perspective once the misconfigured workflow is reachable via a webhook or trigger endpoint. |
| Impact | No CVSS score or EPSS data was provided in the input; all severity signals are independently assessed. The vulnerability class (CWE-22) combined with file read and overwrite potential represents significant risk specifically in multi-tenant or user-facing n8n deployments. The critical risk-limiting factor is the requirement that a workflow author must explicitly and intentionally wire external input to db_path-this is not a default behavior and does not affect standalone or internal-user-only deployments. The absence of a CISA KEV listing and no identified public exploit code suggest no confirmed widespread active exploitation at time of analysis. EPSS is unknown. Real-world risk is concentrated in organizations running n8n as a service or exposing workflows to untrusted external users via webhooks or APIs; for those environments, the impact is high given the n8n process may run with broad filesystem access. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP POST to a publicly accessible n8n webhook endpoint, setting the data field that the workflow author has mapped to db_path to a traversal value such as ../../../../etc/shadow. The n8n process passes this value directly to better-sqlite3, which opens the targeted system file instead of the intended database. The attacker receives the file contents in the workflow output or can overwrite the file with attacker-controlled SQL-structured content, depending on the SQL operation executed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Path traversal in n8n-nodes-sqlite3 (all versions prior to 1.0.0) exposes multi-tenant n8n deployments to arbitrary file read and overwrite through the unsanitized db_path node parameter. When a workflow author explicitly maps untrusted end-user input to the SQLite node's database path field, an attacker can supply a crafted traversal string to redirect SQLite to open any file accessible to the n8n process-potentially exposing credentials, configuration files, or enabling data destruction. No public exploit has been identified at time of analysis, and the vendor-confirmed fix is available in v1.0.0 via commit 145a887.
RemediationAI
Upgrade n8n-nodes-sqlite3 to version 1.0.0, which is the vendor-confirmed patched release. The fix moves the database file path into a server-side SqliteCredentials credential that is structurally isolated from workflow input data, as implemented in PR #25 (https://github.com/DangerBlack/n8n-node-sqlite3/pull/25, commit 145a8876ff12375813bdcd4ae4fe78f460c53a98). Upgrading requires reconfiguring existing SQLite workflows to use the new credential-based path rather than the inline node parameter; this is a one-time migration with no functional trade-offs. If immediate upgrade is not feasible, audit all n8n workflows using this node and verify that no expression or mapping connects external or user-supplied data to the db_path field. In multi-tenant deployments, restricting workflow authoring rights exclusively to trusted internal users eliminates the attack surface entirely until patching is possible. Running the n8n process as a minimally-privileged OS user limits the blast radius of exploitation by restricting which files are accessible.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected package (pkg:npm/n8n-nodes-sqlite3, all versions < 1.0.0) is a community integration node that wraps the better-sqlite3 library within n8n's workflow engine. The root cause is CWE-22 (Path Traversal): the SQLite node exposed the database file path as a plain, user-visible workflow parameter that could be dynamically overridden by data flowing through the workflow. In n8n's node execution model, parameters can be expression-mapped from incoming item data, meaning any untrusted string (e.g., from a webhook body or form input) could substitute the db_path value with a traversal sequence such as ../../etc/passwd. The better-sqlite3 library then opens whichever path is provided without additional validation. The v1.0.0 fix (PR #25, commit 145a8876) migrates the path into n8n's SqliteCredentials subsystem, a server-side store that is structurally isolated from workflow data flow and not overridable by node input expressions.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable via exposed webhook; no attacker privileges required; scope changes because traversal reaches files outside the SQLite database boundary.
Primary rating from Vendor (https://github.com/DangerBlack/n8n-node-sqlite3).
CVSS VectorVendor: https://github.com/DangerBlack/n8n-node-sqlite3
Lifecycle Timeline
1DescriptionCVE.org
Affected versions
< 1.0.0
Patched version
1.0.0
Description
In versions prior to 1.0.0, the SQLite node accepted the database file path as a direct node parameter visible and editable in the workflow. A workflow author who mapped untrusted user input to the db_path field could allow an attacker to control which file was opened by SQLite, potentially enabling path traversal to read or overwrite arbitrary files accessible to the n8n process.
The vulnerability requires the workflow author to explicitly wire untrusted input to the db_path parameter, so it does not affect standalone deployments where only trusted users author workflows. However, in multi-tenant or user-facing n8n deployments the risk is elevated.
Fixed in v1.0.0 by moving the database path into a credential (v2 node architecture), which is stored server-side and not controllable by workflow input data.
References
- Fix commit: 145a887
- Introduced credential-based path: v2 node
Credits
dyingman1 (role: Reporter)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-67158
GHSA-q7m3-rhxg-7vxr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB