{"answers":{"affected":"6 open source packages ship an affected version, including @saltcorn/data.","exploited":"There is no known exploitation of GHSA-9237-rg5p-rhfw in the wild and no public exploit code.","fix":"Upgrade @saltcorn/data to a fixed version for your release line: 1.4.4, 1.5.2 or 1.6.0-beta.2.","what":"GHSA-9237-rg5p-rhfw is a vulnerability in @saltcorn/data, published on 22 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-9237-rg5p-rhfw and fix it if it is affected.\n\nWhat it is: GHSA-9237-rg5p-rhfw is a vulnerability in @saltcorn/data, published on 22 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-9237-rg5p-rhfw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @saltcorn/data (npm): affected all versions; fixed in 1.4.4\n- @saltcorn/data (npm): affected all versions; fixed in 1.4.4\n- @saltcorn/data (npm): affected from 1.5.0-beta.0; fixed in 1.5.2\n- @saltcorn/data (npm): affected from 1.5.0-beta.0; fixed in 1.5.2\n- @saltcorn/data (npm): affected from 1.6.0-alpha.0; fixed in 1.6.0-beta.2\n- @saltcorn/data (npm): affected from 1.6.0-alpha.0; fixed in 1.6.0-beta.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-9237-rg5p-rhfw/ (Markdown: https://insights.sbomify.com/GHSA-9237-rg5p-rhfw/index.md)","id":"GHSA-9237-rg5p-rhfw","markdown":"https://insights.sbomify.com/GHSA-9237-rg5p-rhfw/index.md","name":"GHSA-9237-rg5p-rhfw","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Saltcorn data library","requires_auth":"low_privilege","summary":"Tenant admins can escalate privileges to root domain admin by exploiting role context mismatch during tenant creation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nWhen 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 \u003e _sc_tenants`), rather than in the tenant's own `_sc_tenants` table.\n\nIf the same logic applies to other routes, a tenant admin effectively gains admin rights on the root domain.\n\n## PoC\n\nA tenant-created subtenant appears under the Saltcorn public schema instead of the tenant's own schema.\n\n- Even when `role_id=1` is required for tenant creation on saltcorn.com (only admin can create tenants), existing tenant admins can still create new tenants because their local `role_id:1` is evaluated against the root domain.\n- Even when `role_to_create_tenant` is set to `0` in the tenant's `_sc_config` schema, or removed entirely, the tenant admin can still create sub-tenants on the root domain — suggesting `role_to_create_tenant` is not being read at all.\n\n## Impact\n\nTenant 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.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"@saltcorn/data: Tenant user role is used for tenant creation role check","id":"GHSA-9237-rg5p-rhfw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"privilege_escalation","year":"2026"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/data","purl":null,"source":"GHSA-9237-rg5p-rhfw"},{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/data","purl":"pkg:npm/%40saltcorn/data","source":"GHSA-9237-rg5p-rhfw"},{"ecosystem":"npm","fixed":["1.5.2"],"introduced":["1.5.0-beta.0"],"last_affected":[],"package":"@saltcorn/data","purl":null,"source":"GHSA-9237-rg5p-rhfw"},{"ecosystem":"npm","fixed":["1.5.2"],"introduced":["1.5.0-beta.0"],"last_affected":[],"package":"@saltcorn/data","purl":"pkg:npm/%40saltcorn/data","source":"GHSA-9237-rg5p-rhfw"},{"ecosystem":"npm","fixed":["1.6.0-beta.2"],"introduced":["1.6.0-alpha.0"],"last_affected":[],"package":"@saltcorn/data","purl":null,"source":"GHSA-9237-rg5p-rhfw"},{"ecosystem":"npm","fixed":["1.6.0-beta.2"],"introduced":["1.6.0-alpha.0"],"last_affected":[],"package":"@saltcorn/data","purl":"pkg:npm/%40saltcorn/data","source":"GHSA-9237-rg5p-rhfw"}],"products":null,"published":"2026-04-22","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Tenant admins can escalate privileges to root domain admin by exploiting role context mismatch during tenant creation.","url":"https://insights.sbomify.com/GHSA-9237-rg5p-rhfw/"}