/

CVE-2026-130856

Severity:

CRITICAL RISK

(9.8)

Missing Authentication (CWE-306) in 53AIHub Init API

CVE-2026-130856

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Account Takeover and Unauthorized Administrative Access

Severity:

CRITICAL RISK

(9.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

53AIHub exposes an initialization endpoint that can be called without authentication, even on an already installed instance. A remote unauthenticated attacker may use it to reset an account password, assign the top creator role, obtain an access token, and access administrative API routes.

Affected context

The issue affects 53AIHub deployments where the public POST /api/init endpoint remains available after installation and can reinitialize an existing instance. The endpoint's reachability and behavior in a particular deployment determine exposure.

Exploit preconditions

  • Attack surface: The POST /api/init endpoint is reachable over the network.
  • Required access: No authentication is required.
  • Trigger point: A request to the initialization endpoint on an installed instance.
  • Why exploitation is possible: The endpoint permits sensitive reinitialization actions without first verifying that the caller is authorized.

Why this happens

The application does not enforce authentication or equivalent authorization before performing a sensitive initialization operation. This maps to CWE-306: Missing Authentication for Critical Function, where a security-sensitive function can be invoked without proving the caller's identity.

Potential impact

  • An attacker may reset an existing account's password and take over that account.
  • An attacker could assign the top creator role and obtain an access token.
  • Administrative API routes may be accessed without authorization.
  • Instance data or settings could be exposed or changed through privileged access.

General mitigation guidance

Mitigation generally focuses on ensuring initialization is authorized and unavailable once setup is complete.

Common defensive patterns include:

  • Requiring strong authentication and authorization for sensitive initialization actions.
  • Disabling or tightly restricting setup endpoints after initial deployment.
  • Making initialization a one-time operation with server-enforced state checks.
  • Applying network access controls to administrative and setup routes.
  • Using least-privilege roles and limiting the capabilities granted by issued tokens.

How teams detect issues like this

  • Review routes that perform initialization, account changes, role assignment, or token issuance for authentication and authorization checks.
  • Use static analysis or code review to identify sensitive handlers reachable without middleware or equivalent controls.
  • Monitor access logs for requests to initialization endpoints, especially after deployment setup.
  • Enforce policy checks that prevent public exposure of administrative or setup routes.

Sources

SourceLink
github.comgithub.com/53AI/53AIHub/blob/91ed7f4571397a8dd2aad144330cf2b47233e468/api/router/api.go#L86-L90
github.comgithub.com/53AI/53AIHub/blob/91ed7f4571397a8dd2aad144330cf2b47233e468/api/service/enterprise_install.go#L138-L190
github.comgithub.com/53AI/53AIHub/commit/ed56bc01b4ec68183e7b03e56043bd1f3bf7ba5f
github.comgithub.com/53AI/53AIHub/issues/110
github.comgithub.com/53AI/53AIHub/releases/tag/v0.5.5
vulncheck.comvulncheck.com/advisories/53aihub-before-0.5.5-missing-authentication-via-post-api-init-reinitialization

Frequently asked

questions

It may be exploitable remotely when the initialization endpoint is network-accessible and remains usable on an installed instance.

No authentication is required for the endpoint as described.

Require authorization for sensitive initialization actions and ensure setup functionality cannot reinitialize an instance after setup is complete.

Apply authentication and authorization checks consistently to sensitive routes, restrict setup endpoints at the network boundary, and test access controls in code review and deployment policies.

Find out what's already
exploitable in your codebase.