GHSA-q7m3-rhxg-7vxr

Suggest an improvement
Source
https://github.com/advisories/GHSA-q7m3-rhxg-7vxr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-q7m3-rhxg-7vxr/GHSA-q7m3-rhxg-7vxr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q7m3-rhxg-7vxr
Aliases
Published
2026-08-27T17:06:55Z
Modified
2026-08-27T17:25:39Z
Severity
  • 6.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
n8n-nodes-sqlite3 vulnerable to path traversal via user-controlled database file path (db_path parameter)
Details

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)

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-08-27T17:06:55Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / n8n-nodes-sqlite3

Package

Name
n8n-nodes-sqlite3
View open source insights on deps.dev
Purl
pkg:npm/n8n-nodes-sqlite3

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-q7m3-rhxg-7vxr/GHSA-q7m3-rhxg-7vxr.json"