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

Published Aug 27, 2026
·
Updated

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 dbpath 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 dbpath 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)

Other sources

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 dbpath database file path as a node parameter that permits data expressions from upstream workflow input. A workflow author who maps untrusted input to dbpath 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.

MITRE

Affected Software

1 affected componentFixes available
npm/n8n-nodes-sqlite3<1.0.0
1.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/n8n-nodes-sqlite3 to a version that resolves this vulnerability.

    Fixed in 1.0.0
  2. Upgrade

    Upgrade n8n-nodes-sqlite3 to a version that resolves this vulnerability.

    Fixed in 1.0.0Patch 145a887
  3. Compensating control

    For n8n versions prior to 1.0.0, ensure workflow authors do not map untrusted workflow input/data expressions into the SQLite node's db_path parameter, since nodes/SqliteNode/v1/SqliteV1.node.ts exposes db_path as an editable node parameter.

Event History

Aug 27, 2026
CVE Published
via MITRE·05:06 PM
Data Sourced
via MITRE·05:06 PM
DescriptionWeakness
Advisory Published
via GitHub·05:06 PM
Data Sourced
via GitHub·05:06 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are most exposed?

Multi-tenant or user-facing n8n deployments are at elevated risk when workflow authors can map untrusted user input into the SQLite node's db_path field. Standalone deployments in which only trusted users author workflows are not affected by this condition.

2

What must an attacker control to exploit this issue?

A workflow author must explicitly wire untrusted input to the db_path parameter. An attacker who can influence that input may then control the file path opened by SQLite, including through path traversal, subject to the files accessible to the n8n process.

3

What should be done if upgrading cannot happen immediately?

Do not map untrusted input to the SQLite node's db_path parameter, and restrict workflow authoring to trusted users. This prevents workflow input data from controlling the database file path.

4

How does version 1.0.0 address the issue?

Version 1.0.0 moves the database path into a server-side credential using the v2 node architecture. The path is no longer controllable through workflow input data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203