Skip to content

Path Traversal via SQLite Source Filename

Moderate
mertmit published GHSA-wvqj-9wv4-7ff5 Jun 4, 2026

Package

npm nocodb (npm)

Affected versions

<=2026.05.0

Patched versions

2026.05.1

Description

Summary

An authenticated user with base-create permission can attach a SQLite source pointing at
an arbitrary file on the NocoDB host, including NocoDB's own internal databases.

Details

The SQLite client and the base/integration create services accepted a caller-supplied
filename and passed it to fs.exists and fs.open('w') without restricting the location.
A user could point a source at noco.db, at a tenant database under nc_minimal_dbs/,
or at any writable path the NocoDB process can reach, and then read or overwrite its
contents through the regular table APIs.

Impact

Disclosure and modification of NocoDB internal state, of other tenants' databases, and
of any file the NocoDB process can read or write. Authentication and base-create
permission are required.

Credit

This issue was reported by @Mouhebbenelwafi.

Severity

Moderate

CVE ID

CVE-2026-47385

Weaknesses

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Learn more on MITRE.

Credits