Skip to main content

n8n-nodes-sqlite3 EUVDEUVD-2026-67158

| CVE-2026-54687 MEDIUM
Path Traversal (CWE-22)
2026-08-27 https://github.com/DangerBlack/n8n-node-sqlite3 GHSA-q7m3-rhxg-7vxr
6.1
CVSS 4.0 · Vendor: https://github.com/DangerBlack/n8n-node-sqlite3
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted request to exposed n8n webhook
  2. Exploit
    Workflow expression maps request data to SQLite db_path
  3. Execution
    better-sqlite3 opens attacker-controlled file path
  4. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n-node-sqlite3 < 1.0.0

Affected Packages

npm n8n-nodes-sqlite3 fix: 1.0.0
euvd n8n_node_sqlite3 fix: 1.0.0

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

Vendor (https://github.com/DangerBlack/n8n-node-sqlite3) PRIMARY 6.1 MEDIUM
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
vuln.today AI 10.0 CRITICAL

Network-reachable via exposed webhook; no attacker privileges required; scope changes because traversal reaches files outside the SQLite database boundary.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/DangerBlack/n8n-node-sqlite3).

CVSS VectorVendor: https://github.com/DangerBlack/n8n-node-sqlite3

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Aug 27, 2026 - 20:37 NVD
6.1 (MEDIUM)

DescriptionCVE.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

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Low
community npm plugin for n8n, niche SQLite integration footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy