/

CVE-2026-104467

Severity:

HIGH RISK

(8.1)

Authorization Bypass (CWE-862) in YesWiki API Service

CVE-2026-104467

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-862

Impact:

Unauthorized administrative actions, configuration tampering, and backup archive exposure or deletion

Severity:

HIGH RISK

(8.1)

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

YesWiki contains an authorization bypass in ApiService::isAuthorized() that may allow unauthenticated users to access administrator-only API routes when public API mode is enabled. Successful exploitation could let attackers overwrite configuration or list, download, and delete backup archives.

Affected context

The vulnerability occurs in YesWiki deployments where public API mode is enabled and authorization checks for administrative API routes do not correctly distinguish unauthenticated requests. Affected functionality includes configuration update and archive-management endpoints, such as api/ci/update_config and api/archives. The practical risk depends on which routes are exposed and what permissions the application process has.

Exploit preconditions

  • Attack surface: HTTP-accessible YesWiki API routes
  • Required access: No authenticated account may be required when public API mode is enabled
  • Trigger point: Requests to administrative API endpoints handled by ApiService::isAuthorized()
  • Why exploitation is possible: The authorization decision can incorrectly permit unauthenticated access to routes intended for administrators

Why this happens

The underlying bug is an authorization enforcement failure mapped to CWE-862: Missing Authorization. The affected authorization logic does not reliably require an appropriate authenticated identity and privilege level before allowing administrative API operations. This creates an insecure pattern in which route exposure is treated as sufficient authorization, allowing public requests to reach privileged functionality.

Potential impact

  • Attackers may overwrite application configuration
  • Sensitive backup archives could be listed or downloaded
  • Existing backup archives may be deleted
  • Application availability or behavior could be disrupted
  • Configuration changes could enable follow-on compromise depending on deployment settings

General mitigation guidance

Mitigation generally focuses on enforcing authorization independently for every administrative operation and reducing the trust placed in public API exposure.

Defensive patterns include:

  • Require authenticated, explicitly privileged identities for configuration and archive-management routes
  • Apply deny-by-default authorization policies to administrative API endpoints
  • Keep public API functionality limited to narrowly scoped, non-administrative operations
  • Validate both authentication state and required role or capability at the service boundary
  • Restrict access to backup storage and avoid exposing archives through broadly reachable application routes
  • Run the application with only the filesystem and service privileges it needs
  • Record and review authorization failures and sensitive administrative actions

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and code review checks for authorization helpers that return success without a verified identity or privilege
  • Review of route definitions to identify administrative endpoints reachable through public API modes
  • Tests that exercise sensitive routes as anonymous, ordinary-user, and administrator identities
  • Monitoring for unauthenticated requests to configuration and archive-management endpoints
  • Policy enforcement requiring explicit authorization annotations or middleware on privileged routes
  • Automated security testing that checks for missing function-level access controls

Sources

SourceLink
github.comgithub.com/YesWiki/yeswiki/security/advisories/GHSA-v527-6r4j-j2w2
vulncheck.comvulncheck.com/advisories/yeswiki-before-4.6.7-authorization-bypass-via-public-api-mode

Frequently asked

questions

Yes. If the YesWiki API is reachable over the network and public API mode is enabled, an attacker may be able to send requests without authenticating.

Not necessarily. The reported condition specifically concerns unauthenticated access to routes intended for administrators, although deployment-level network controls may limit exposure.

Enforce deny-by-default, per-route authorization that requires both a valid authenticated identity and the necessary administrative capability before processing sensitive operations.

Maintain authorization-focused tests for every privileged endpoint, review public API settings, restrict backup access, and monitor anonymous requests to administrative routes.

Find out what's already
exploitable in your codebase.