/

CVE-2026-130861

Severity:

HIGH RISK

(8.8)

Missing Authorization (CWE-862) in UrlHub User Creation

CVE-2026-130861

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Privilege Escalation

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

UrlHub has a missing authorization check on the /admin/user/store account-creation route, allowing authenticated users to create accounts with administrator privileges. If the route is reachable and accepts a client-supplied role without enforcing authorization server-side, an attacker may gain full administrative control.

Affected context

The issue occurs in UrlHub's administrative user-creation flow. The role:admin middleware reportedly covers view and create actions but not the /admin/user/store route, leaving account creation insufficiently protected. The risk is greatest when ordinary authenticated users can reach this route and the server accepts an administrator role supplied in the request.

Exploit preconditions

  • Attack surface: The /admin/user/store route in the web application
  • Required access: An authenticated user account; self-registration may provide this access where enabled
  • Trigger point: Processing a user-creation request
  • Why exploitation is possible: Authorization middleware does not cover the route, and the request can specify an administrator role

Why this happens

The underlying issue is a missing authorization check, mapped to CWE-862. The application applies role-based middleware inconsistently across administrative actions, leaving a sensitive account-creation operation accessible without an adequate permission check. Trusting a client-supplied role when creating an account can allow a lower-privileged user to assign elevated privileges.

Potential impact

  • An attacker may create an administrator account
  • Unauthorized users could gain full administrative control
  • Administrative data and settings could be altered or exposed
  • The compromised application could be used to affect other users or connected systems

General mitigation guidance

Defensive patterns include applying server-side authorization checks to every sensitive route and action, including account creation. Derive roles and permissions from trusted server-side policy rather than accepting privilege levels from client input, and default new accounts to the least privilege necessary. Use centralized authorization controls and review route coverage to reduce gaps between related actions.

How teams detect issues like this

  • Review route definitions and middleware mappings for sensitive actions that lack authorization checks
  • Use static analysis or code review to identify user-controlled role assignments and inconsistent access-control enforcement
  • Test authorization policies to confirm ordinary users cannot create or promote accounts
  • Enforce policy checks in CI and monitor account-creation events for unexpected privilege assignments

Sources

SourceLink
github.comgithub.com/realodix/urlhub/blob/v1.20.0/app/Http/Controllers/Dashboard/User/UserController.php#L16
github.comgithub.com/realodix/urlhub/commit/8f2ee55f897090925b3f9a35aa881cede7ea73bd
github.comgithub.com/realodix/urlhub/issues/1140
github.comgithub.com/realodix/urlhub/releases/tag/v1.20.1
vulncheck.comvulncheck.com/advisories/urlhub-before-1.20.1-missing-authorization-via-admin-user-store-endpoint

Frequently asked

questions

An authenticated user who can reach the affected account-creation route may be able to exploit the missing authorization check.

The described issue does not require administrator access; an ordinary authenticated account may be sufficient. Self-registration may make such an account available where enabled.

Enforce server-side authorization on the account-creation action and determine permitted roles using trusted policy, not client-supplied values.

Apply centralized access-control checks consistently across routes, test authorization boundaries, and review changes to sensitive actions for middleware coverage.

Find out what's already
exploitable in your codebase.