/

CVE-2026-130591

Severity:

HIGH RISK

(7.5)

Missing Authentication (CWE-306) in 53AIHub File APIs

CVE-2026-130591

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized access to sensitive files

Severity:

HIGH RISK

(7.5)

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 file preview and file-version endpoints that, as described, do not require user-token authentication. An unauthenticated attacker who can reach these endpoints may enumerate file identifiers to access knowledge-base files and stored file versions across enterprise tenants.

Affected context

The issue concerns the /api/files/:file_id/preview and /api/file-version/:file_body_id endpoints in 53AIHub. It becomes a risk when these routes are reachable by an unauthenticated client and are not protected by authentication and tenant-level authorization checks.

Exploit preconditions

  • Attack surface: The file preview and file-version API routes must be reachable.
  • Required access: No authenticated account is required, according to the description.
  • Trigger point: Requests to either endpoint using file or file-version identifiers.
  • Why exploitation is possible: The routes reportedly lack UserTokenAuth, and sequential numeric identifiers may be enumerable, potentially exposing files across enterprise tenants.

Why this happens

The underlying issue is missing authentication on endpoints that return potentially sensitive file content. This maps to CWE-306: Missing Authentication for Critical Function: the application permits access to a protected function without first verifying the caller's identity. Where tenant boundaries apply, authentication alone may not be sufficient; authorization must also ensure that the requester is permitted to access the specific file.

Potential impact

  • Unauthenticated users may access raw knowledge-base files.
  • Stored file versions may be exposed.
  • Sensitive information belonging to other enterprise tenants could be disclosed.
  • Repeated access may enable broad collection of available files.

General mitigation guidance

Common defensive patterns include:

  • Requiring authentication on every endpoint that returns private file content.
  • Enforcing tenant- and resource-level authorization for each requested file.
  • Treating identifiers as references, not as proof of access rights.
  • Reducing reliance on predictable identifiers as a defense-in-depth measure, while retaining access controls.
  • Applying least privilege to service identities and limiting file data returned by APIs.

How teams detect issues like this

Review route definitions and middleware to identify file-serving endpoints that lack authentication or authorization checks. Static analysis and code review can flag sensitive handlers that are reachable without the expected guards. Monitor API logs for repeated requests, sequential identifier patterns, and access attempts spanning multiple tenant resources; policy checks can require explicit authentication and resource authorization for sensitive routes.

Sources

SourceLink
github.comgithub.com/53AI/53AIHub/blob/27bdc89569ab0a4a9a2042fc9d8f27bda5419ccc/api/controller/file_preview.go#L42-L58
github.comgithub.com/53AI/53AIHub/blob/27bdc89569ab0a4a9a2042fc9d8f27bda5419ccc/api/router/api.go#L106-L109
github.comgithub.com/53AI/53AIHub/commit/ed56bc01b4ec68183e7b03e56043bd1f3bf7ba5f
github.comgithub.com/53AI/53AIHub/issues/106
github.comgithub.com/53AI/53AIHub/releases/tag/v0.5.5
hackmd.iohackmd.io/@hieuPenguinnn/53aihub-unauth-cross-tenant-file-preview-idor
vulncheck.comvulncheck.com/advisories/53aihub-before-0.5.5-missing-authentication-via-file-preview-endpoints

Frequently asked

questions

It may be exploitable over the network if the affected API routes are reachable by an attacker.

The description reports that the endpoints do not use UserTokenAuth, so an authenticated account is not required to make the described requests.

Require authentication and verify, for every requested file, that the authenticated user is authorized to access it within the relevant tenant.

Maintain an inventory of sensitive API routes, enforce authentication and resource-level authorization consistently, and test for unauthenticated access and cross-tenant access in security reviews.

Find out what's already
exploitable in your codebase.