Description
Nezha 2.2.3 contains a Host header injection regression in the OAuth2 redirect endpoint. When the new optional dashboard_host setting is empty, /api/v1/oauth2/{provider} (cmd/dashboard/controller/oauth2.go) reflects the attacker-supplied HTTP Host header into the redirect_uri sent to the identity provider instead of falling back to the configured install_host. An attacker who induces a victim to begin OAuth2 login via a request that reaches Nezha with a forged Host header can cause an attacker-controlled callback URL to be used as the redirect_uri; if the OAuth2 provider accepts it, the victim's authorization code is delivered to the attacker origin, allowing the attacker to complete the OAuth2 login/binding flow and take over the account. This regresses the fix for GHSA-9rc6-8cjv-rcvx and is configuration-dependent (dashboard_host empty). At the time of the advisory no patched version was available.
Published: 2026-09-27
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Account Compromise
Action: Assess Impact
AI Analysis

Impact

Nezha 2.2.3 contains a Host header injection that leaks the attacker‑supplied Host header into the OAuth2 redirect_uri when the optional dashboard_host setting is left empty. The redirect_uri is sent to the identity provider without validation; if the provider accepts it, the victim’s authorization code is returned to the attacker’s origin. The attacker can then complete the OAuth authentication flow and bind the victim’s account to the attacker’s account, effectively taking over the victim’s account. This falls under CWE‑601: URL Redirection Through Untrusted Input.

Affected Systems

The vulnerability is present only in Nezha version 2.2.3 when the dashboard_host configuration is empty. No patched version existed at the time of the advisory. The issue is limited to deployments of the specified Nezha product and version with that particular configuration.

Risk and Exploitability

The CVSS score of 9.3 indicates high severity, reflecting the remote nature of the attack and the potential for full account compromise. EPSS is not available, but the lack of a patch and the high CVSS suggest that exploit attempts are plausible. The vulnerability is not listed in CISA’s KEV catalog, but the attack vector is inferred to be remote, requiring an attacker to craft a request that forces a victim’s browser to hit Nezha with a forged Host header and to have the OAuth2 provider accept a malicious redirect_uri. If both conditions are met, exploitation is straightforward.

Generated by OpenCVE AI on September 27, 2026 at 22:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an update to Nezha 2.2.3 or a later version when a patch is released that fixes the Host header injection.
  • If a patch is not yet available, configure the Nezha dashboard_host parameter with a valid hostname to prevent the application from falling back to the reflected Host header.
  • Use a reverse proxy or firewall that validates the HTTP Host header against known hostnames for Nezha and rejects requests with forged Host headers before they reach the application.

Generated by OpenCVE AI on September 27, 2026 at 22:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 27 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
Description Nezha 2.2.3 contains a Host header injection regression in the OAuth2 redirect endpoint. When the new optional dashboard_host setting is empty, /api/v1/oauth2/{provider} (cmd/dashboard/controller/oauth2.go) reflects the attacker-supplied HTTP Host header into the redirect_uri sent to the identity provider instead of falling back to the configured install_host. An attacker who induces a victim to begin OAuth2 login via a request that reaches Nezha with a forged Host header can cause an attacker-controlled callback URL to be used as the redirect_uri; if the OAuth2 provider accepts it, the victim's authorization code is delivered to the attacker origin, allowing the attacker to complete the OAuth2 login/binding flow and take over the account. This regresses the fix for GHSA-9rc6-8cjv-rcvx and is configuration-dependent (dashboard_host empty). At the time of the advisory no patched version was available.
Title Nezha through 2.2.3 Host Header Injection via OAuth2 redirect_uri
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-27T20:50:00.857Z

Reserved: 2026-09-27T20:29:07.433Z

Link: CVE-2026-101090

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-27T21:17:03.003

Modified: 2026-09-27T21:17:03.003

Link: CVE-2026-101090

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T22:30:17Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')