All vulnerabilities

Servers and applications

GHSA-vq3j-xwg3-pg8x

Missing per-table authorization on POST /api/datasources/query allows low-privilege role to bypass table permission restrictions

Severity
High 8.1
Published
14 Aug 2026
Last changed
14 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
3.41.3
Weakness
Missing authorization (CWE-862)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

POST /api/datasources/query lets any authenticated user who holds the lowest non-public application role (BASIC) read, create, update, or delete rows in any table of any datasource configured in that application, even when the application owner has explicitly restricted that specific table to a higher role (POWER or ADMIN) via the table's permission settings. The normal row API (/api/:tableId/rows) correctly enforces the per-table role, but this alternate "raw query" endpoint does not check the caller's role against the target table at all.

The route is registered in packages/server/src/api/routes/datasource.ts:

Every sibling route that accepts a resource ID in the request (e.g. /api/queries/preview, /api/queries) is wrapped with bodyResource("datasourceId") or paramResource/paramSubResource before the authorized() middleware, which populates ctx.resourceId so the authorization middleware can look up the specific role required for that resource. This route is missing that call.

From Budibase/budibase's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BudibaseServers and applications · github:budibase/budibase
  • Every version before 3.41.3

About Budibase

low-code development platform

From Wikidata, CC0 1.0.
Docker Hub pulls
2,327,272Docker Hub, 15 Nov 2026
GitHub stars
28,419GitHub, 15 Nov 2026
Forks
2,238GitHub, 15 Nov 2026
Latest release
v4.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
7 Jun 2019GitHub

References