/

CVE-2026-130855

Severity:

HIGH RISK

(8.8)

Broken Access Control (CWE-863) in Bonsai Admin Pages

CVE-2026-130855

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-863

Impact:

Privilege Escalation and Instance Takeover

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Bonsai contains an authorization flaw in which the admin-page handler accepts both Administrator and Editor roles. An authenticated Editor may therefore reach administrative functions that can reset administrator passwords, promote accounts, or change global settings, potentially enabling instance takeover.

Affected context

The issue affects Bonsai deployments where administrative page access is handled by AdminAuthHandler and Editor users are accepted alongside Administrators. The described administrative operations are exposed through UsersController and DynamicConfigController; risk depends on whether an authenticated Editor can reach and invoke those functions.

Exploit preconditions

  • Attack surface: Bonsai administrative pages and controller actions
  • Required access: An authenticated account with the Editor role
  • Trigger point: Access to administrative functions in UsersController or DynamicConfigController
  • Why exploitation is possible: The authorization handler accepts the Editor role for pages intended for administrators, allowing actions beyond the user's intended privileges

Why this happens

The authorization check grants access to administrative functionality to a role that should not have that privilege. This is an incorrect authorization flaw mapped to CWE-863: Incorrect Authorization: the application does not enforce the intended role boundary when deciding whether a user may perform a sensitive action.

Potential impact

  • An Editor could reset administrator passwords
  • An Editor could promote accounts to Administrator
  • An Editor could change global settings
  • These actions could enable administrative account takeover or broader compromise of the Bonsai instance

General mitigation guidance

Mitigation generally involves enforcing authorization at each sensitive action, not only at the page or handler level.

Common defensive patterns include:

  • Apply explicit, deny-by-default role checks for administrative operations
  • Separate Editor and Administrator capabilities and grant only the minimum required permissions
  • Recheck authorization within controllers before performing sensitive changes
  • Require appropriate safeguards for password resets, role changes, and global configuration updates
  • Review role mappings and authorization policies whenever administrative functionality changes

How teams detect issues like this

Useful detection approaches include:

  • Review authorization checks for handlers and controllers that accept multiple roles
  • Use static analysis or code review rules to flag sensitive actions without explicit permission checks
  • Test role boundaries to verify that Editor accounts cannot perform administrator-only operations
  • Monitor audit logs for password resets, role promotions, and global setting changes initiated by non-administrator accounts
  • Enforce policy checks in CI for authorization coverage on sensitive routes and actions

Sources

SourceLink
github.comgithub.com/impworks/bonsai/blob/v6.0/src/Bonsai/Areas/Admin/Controllers/UsersController.cs#L20-L180
github.comgithub.com/impworks/bonsai/blob/v6.0/src/Bonsai/Areas/Admin/Logic/Auth/AdminAuthHandler.cs#L10-L30
github.comgithub.com/impworks/bonsai/commit/08fee7fa0fb73c1ff2d19e737aa920fa25cbb48f
github.comgithub.com/impworks/bonsai/issues/355
vulncheck.comvulncheck.com/advisories/bonsai-through-6.0-incorrect-authorization-in-admin-users-and-config-controllers

Frequently asked

questions

The described issue concerns access to Bonsai administrative pages. An attacker would need to be able to reach the application and authenticate as an Editor.

An authenticated Editor account is the stated prerequisite; unauthenticated access is not described.

Enforce deny-by-default, administrator-only authorization checks on each sensitive operation, including controller actions.

Define clear role-to-capability policies, test access boundaries for every role, and review authorization checks whenever sensitive routes or actions are added.

Find out what's already
exploitable in your codebase.