/

CVE-2026-124027

Severity:

HIGH RISK

(7.5)

Missing Authentication (CWE-306) in ChatWiki File Route

CVE-2026-124027

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized cross-tenant document disclosure

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

ChatWiki's document-page route can expose knowledge-base files without requiring authentication. An unauthenticated attacker who can identify or enumerate the relevant user and file IDs may retrieve PDF-rendered pages belonging to other tenants.

Affected context

The issue affects ChatWiki deployments with the /manage/getLibRawFileOnePage route available. The route is described as missing authentication and as allowing requests that bypass the ownership check, potentially exposing PDF-rendered pages from other tenants' knowledge bases.

Exploit preconditions

  • Attack surface: The HTTP GET /manage/getLibRawFileOnePage route
  • Required access: No authentication is required according to the vulnerability description
  • Trigger point: A request to retrieve a document page using the route's user and file identifiers
  • Why exploitation is possible: Sequentially enumerable identifiers and insufficient authentication or ownership enforcement may allow access to another tenant's documents

Why this happens

The route does not adequately require authentication before serving document content, mapping to CWE-306: Missing Authentication for Critical Function. The described ownership-check bypass also indicates that tenant authorization is not reliably enforced before the file is returned.

Potential impact

  • An unauthenticated attacker could read PDF-rendered pages from other tenants' knowledge bases.
  • Confidential business or personal information in documents may be disclosed.
  • Repeated access could expose a broader collection of tenant documents.

General mitigation guidance

Mitigations generally focus on ensuring that document retrieval is authenticated and authorized for every request.

  • Require a verified user identity before serving document content.
  • Check tenant and document ownership on the server for each request; do not rely on identifiers being difficult to guess.
  • Use secure-by-default access controls that deny access unless explicitly authorized.
  • Limit the service account and application privileges involved in document retrieval.
  • Minimize sensitive data returned by document-rendering endpoints.

How teams detect issues like this

Review document-serving routes for missing authentication middleware and authorization checks that use client-supplied identifiers without verifying tenant ownership. Static analysis and code review can flag routes that return files or rendered content without an established identity and access-control decision. Monitor access logs for unauthenticated requests, unusual sequential identifier patterns, and document requests spanning multiple tenants; enforce policies requiring authentication and tenant-scoped authorization on sensitive routes.

Sources

SourceLink
github.comgithub.com/zhimaAi/chatwiki
github.comgithub.com/zhimaAi/chatwiki/blob/v2.9.6/internal/app/chatwiki/business/manage/lib_file.go#L936
github.comgithub.com/zhimaAi/chatwiki/commit/d1ca145e283e2cb652e0b1002d5f14d6a46671e3
github.comgithub.com/zhimaAi/chatwiki/issues/181
github.comgithub.com/zhimaAi/chatwiki/releases/tag/v2.10.0
vulncheck.comvulncheck.com/advisories/chatwiki-before-2.10.0-unauthenticated-document-disclosure-via-getlibrawfileonepage

Frequently asked

questions

The described route is an HTTP endpoint, and the vulnerability permits unauthenticated requests. Exposure depends on whether the route is reachable in a given deployment.

No authentication is described as being required. The attacker would still need to identify or enumerate relevant user and file IDs.

Require authentication and perform a server-side tenant ownership check before returning any document page.

Apply deny-by-default, tenant-scoped authorization to every sensitive endpoint, and test that requests cannot access objects belonging to another tenant.

Find out what's already
exploitable in your codebase.