/

CVE-2026-112340

Severity:

HIGH RISK

(8.2)

Authorization Bypass (CWE-863) in Wazuh Dashboard API

CVE-2026-112340

Awaiting Analysis

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Manager API identity impersonation and unauthorized upstream requests

Severity:

HIGH RISK

(8.2)

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

A flaw in the Wazuh dashboard proxy can let an authenticated dashboard user override the Authorization header used for requests to the Manager API. If the proxy accepts a user-supplied nested header value, the request may use another Manager API identity or reach the upstream API without the server-side session token.

Affected context

The issue affects Wazuh dashboard plugins in versions 4.9.0 before 4.14.9 when requests pass through the /api/request proxy endpoint. It becomes risky when the proxy allows client-controlled body.headers.Authorization values to replace the server-side session Bearer token rather than enforcing the authenticated user's identity and permissions.

Exploit preconditions

  • Attack surface: The dashboard's /api/request proxy endpoint and its upstream Manager API requests
  • Required access: An authenticated dashboard account; the description does not specify that administrative privileges are required
  • Trigger point: The proxy processes a request containing a nested body.headers.Authorization value
  • Why exploitation is possible: User-controlled input can override the server-side Authorization header, potentially changing or removing the identity used for the upstream request

Why this happens

The proxy fails to enforce authorization boundaries when constructing upstream requests: it accepts a client-controlled Authorization header where a trusted server-side session token should remain authoritative. This is an authorization enforcement weakness, mapping to CWE-863: Incorrect Authorization. More generally, security-sensitive identity and access-control data should not be overrideable through untrusted request fields.

Potential impact

  • An authenticated user could act as another Manager API identity if they can supply or obtain an acceptable credential
  • Requests could reach the upstream API without the intended server-side session token
  • The Manager API could expose or modify data beyond the user's intended permissions
  • The issue could enable further compromise depending on the upstream API's authorization controls

General mitigation guidance

Defensive patterns include keeping upstream identity and authorization decisions under server control, and rejecting or stripping client-supplied Authorization values before proxying requests. Use an explicit allowlist of permitted headers and request fields, enforce authorization for each upstream operation, and avoid granting the proxy broader Manager API privileges than it needs. Treat nested request data as untrusted and apply least privilege to both dashboard users and service identities.

How teams detect issues like this

Review proxy code for paths where request-body fields can influence security-sensitive upstream headers, especially Authorization. Use static analysis and code review checks to flag header merges involving untrusted input, and verify that proxy policies explicitly allowlist forwarded headers. Monitor proxy and Manager API audit logs for unexpected identity changes, missing authorization context, or requests inconsistent with the authenticated dashboard user's permissions. Automated code review tools may help identify unsafe header-handling patterns.

Sources

SourceLink
github.comgithub.com/wazuh/wazuh/releases/tag/v4.14.9
github.comgithub.com/wazuh/wazuh/security/advisories/GHSA-7rvv-9467-96mc
vulncheck.comvulncheck.com/advisories/wazuh-4.9.0-before-4.14.9-authorization-header-override-via-api-request

Frequently asked

questions

The described attack requires an authenticated dashboard account. The specific permissions needed beyond authentication are not stated.

The issue involves requests forwarded by the dashboard's /api/request proxy. The attacker does not necessarily need direct network access to the Manager API, but the proxy must be able to reach it.

Do not allow client-supplied request data to override the proxy's server-managed Authorization header. Strip or reject such values and enforce authorization for each forwarded operation.

Keep identity and access-control data server-controlled, allowlist forwarded headers, apply least privilege, and test proxy behavior with adversarial input during code review and security testing.

Find out what's already
exploitable in your codebase.