@saltcorn/data: Tenant user role is used for tenant creation role check
Summary
When a tenant admin is logged out of the root domain (e.g., saltcorn.com) but logged in to their own tenant space as admin, they can simply append /tenant/create to their tenant URL. The system reads the role from the tenant context (admin), and a new tenant is created on the root domain (in PUBLIC SCHEMA > _sc_tenants), rather than in the tenant's own _sc_tenants table.
If the same logic applies to other routes, a tenant admin effectively gains admin rights on the root domain.
PoC
A tenant-created subtenant appears under the Saltcorn public schema instead of the tenant's own schema.
- Even when
role_id=1is required for tenant creation on saltcorn.com (only admin can create tenants), existing tenant admins can still create new tenants because their localrole_id:1is evaluated against the root domain. - Even when
role_to_create_tenantis set to0in the tenant's_sc_configschema, or removed entirely, the tenant admin can still create sub-tenants on the root domain — suggestingrole_to_create_tenantis not being read at all.
Impact
Tenant admins gain unauthorized admin-level access to the root domain. Any authenticated tenant admin can perform privileged operations (e.g., creating tenants) on the root domain by exploiting the role context mismatch.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de npm | @saltcorn/data | < 1.4.4, >= 1.5.0-beta.0, < 1.5.2, >= 1.6.0-alpha.0, < 1.6.0-beta.2 | 1.4.4, 1.5.2, 1.6.0-beta.2 |
Referencias
- Vector CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N- Debilidad (CWE)
CWE-863- Plataforma
- npm
- Paquete
@saltcorn/data- Publicada
- 22.04.2026
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-9237-rg5p-rhfw - CC BY 4.0
Historial de vulnerabilidades: @saltcorn/data
Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 2
- Primera → última
- 04.2026 04.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 1
- Baja 1
Divulgaciones por año
- 2026: 2
-
@saltcorn/data: Tenant user role is used for tenant creation role check esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.