Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend OAuth2 start request with forged Host header
-
DeliveryNezha reflects Host into redirect_uri
-
ExploitLure victim to begin OAuth2 login
-
ExecutionIdP redirects authorization code to attacker origin
-
PersistAttacker completes login/binding flow
-
ImpactAccount takeover of Nezha dashboard
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires ALL of: (1) the Nezha instance is configured for OAuth2 login AND the new optional dashboard_host setting is left EMPTY (the fallback to install_host only fires when dashboard_host is non-empty) - this is the core regression condition; (2) the deployment reaches Nezha with an attacker-controllable HTTP Host header (e.g. a reverse proxy that passes client Host through, or direct exposure), so the forged Host is reflected into redirect_uri; (3) a victim is induced to initiate the OAuth2 login/binding flow via the attacker's crafted request (user interaction required); and (4) the configured OAuth2 identity provider ACCEPTS the attacker-controlled redirect_uri - providers that strictly allowlist redirect URIs block the attack entirely. Limiting factors: non-default/empty-config dependency, mandatory victim interaction, and reliance on a permissive IdP redirect policy substantially narrow real-world exploitability despite the network-reachable unauthenticated entry point. |
| Impact | This is a genuine but conditional account-takeover vulnerability, not a slam-dunk critical. The vendor CVSS 4.0 vector (9.3, AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) overstates real-world risk on several axes. First, exploitation is NOT no-interaction: the advisory itself states an attacker must 'induce a victim to begin OAuth2 login' through a request carrying a forged Host header, which is inherent user interaction (UI:R), so UI:N is wrong. Second, success is gated by a large external dependency the vendor vector ignores - the configured OAuth2 identity provider must actually ACCEPT the attacker-controlled redirect_uri; most mature providers (GitHub, Google) enforce a redirect_uri allowlist, which would defeat this, making AC:L optimistic (AC:H/AT:P is more honest). Third, VA:H (availability) is not well-supported: the impact is credential/session theft and account binding, i.e. confidentiality and integrity, with no direct availability loss. It is also configuration-dependent (only when the new optional dashboard_host is empty), though the advisory correctly notes this is a realistic upgrade/default state. On exploitation signals: no EPSS score and no KEV entry are provided, so there is no evidence of active exploitation - this is targeted/theoretical at present. However, the advisory contains a concrete reproduction (curl-style request + a Go route-level unit test), so working proof-of-concept material effectively exists publicly. Net: a real, patch-worthy issue meriting prompt remediation for exposed Nezha instances, but its practical exploitability is meaningfully lower than the 9.3 headline because it needs victim interaction, a permissive IdP redirect_uri policy, and the empty-dashboard_host configuration. |
| Exploit ScenarioDerived | An attacker crafts a link that routes a victim to a vulnerable Nezha instance (dashboard_host empty) to start OAuth2 login while supplying a forged Host header (e.g. Host: evil.attacker.test with X-Forwarded-Proto: https). Nezha reflects that Host into the redirect_uri sent to the identity provider; if the provider accepts the URI, the victim's authorization code is delivered to the attacker's origin, letting the attacker complete the login/binding flow and hijack the account. Proof-of-concept material exists in the advisory (reproduction request and a route-level unit test), but there is no evidence of active exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 27, 2026
Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated remote attacker who can control the HTTP Host header on a request reaching the server to make Nezha emit an attacker-chosen redirect_uri to the configured identity provider; a victim induced to start the OAuth2 login/binding flow can then have their authorization code delivered to the attacker's origin, letting the attacker complete the flow and take over the account. The bug is a regression of the GHSA-9rc6-8cjv-rcvx fix and only manifests when the new optional dashboard_host setting is left empty, so the code no longer falls back to install_host; exploitation also requires victim interaction and an identity provider that accepts the forged redirect URI, which is why the independent assessment scores it CVSS:3.1/AV:N/AC:H/PR:N/UI:R while the vendor-style CVSS 4.0 rating is 9.3. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; no patched release version was published with the advisory, only an upstream fix commit (38824dbc11a63964c5b9296ae4c68e62b34fa04b).
RemediationAI
No vendor-released patched version was published with the advisory, so the primary action is to apply the upstream fix commit 38824dbc11a63964c5b9296ae4c68e62b34fa04b (or later) or wait for a tagged release that contains it, tracked via GHSA-rf68-8gjr-36q7. As an immediate compensating control, explicitly set dashboard_host in the Nezha configuration to the legitimate canonical dashboard hostname (matching install_host) so the code takes the non-empty branch and never reflects the request Host header; this requires a configuration change and service restart and must be applied consistently to every instance. In parallel, normalize Host at the edge: configure the reverse proxy to pass a fixed, canonical Host value to Nezha (for example nginx 'proxy_set_header Host $server_name' with a defined server_name, or the equivalent in another proxy) rather than forwarding the client-supplied Host, accepting that this changes how Nezha sees its own hostname and must be validated against other features that depend on it. The most durable compensating control is on the identity-provider side: restrict the OAuth2 client's allowed redirect URIs to the exact canonical callback (https://<dashboard-host>/api/v1/oauth2/callback) with no wildcard or suffix matching, which blocks the attack outright regardless of the Nezha configuration state. Avoid exposing the Nezha dashboard API directly to the internet without a proxy that normalizes Host, and treat any OAuth2 account bound through a suspect flow as compromised and re-authenticate affected users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nezha is a Go-based server monitoring and dashboard application, and the affected component is the OAuth2 authorization-code flow handler at /api/v1/oauth2/{provider}, implemented in cmd/dashboard/controller/oauth2.go on the Gin web framework, which builds the authorization URL sent to the configured identity provider. The root cause class is CWE-601 (URL Redirection to Untrusted Site / open redirect): the controller derives the redirect_uri from the client-supplied HTTP Host header (using X-Forwarded-Proto for the scheme) instead of the operator-configured canonical host. Version 2.2.0 had addressed this same weakness under GHSA-9rc6-8cjv-rcvx by falling back to install_host, but the 2.2.3 code path performs that fallback only when the newly introduced optional dashboard_host field is non-empty, so an empty dashboard_host reinstates the original host-header reflection. Reproduction against v2.2.3 / master commit 3d74cd9431a48fa89c6489689eac82a872799ea0 shows a request with 'Host: evil.attacker.test' and 'X-Forwarded-Proto: https' producing redirect_uri=https://evil.attacker.test/api/v1/oauth2/callback. The affected package is go/github.com/nezhahq/nezha, matched by CPE cpe:2.3:a:nezhahq:nezha, with version 2.2.3 identified as vulnerable.
Know when Nezha gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H and UI:R because success needs a permissive IdP redirect policy plus a victim induced to start login; PR:N (pre-auth); C:H/I:H for account takeover, A:N as no availability loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Technical POC Analysis
CWE-601: URL Redirection to Untrusted Site ("Open Redirect").
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Nezha version 2.2.3, a server monitoring and management panel, contains a critical authentication bypass that allows an unauthenticated attacker to take over user accounts by manipulating the OAuth2 login flow. No public exploit identified at time of analysis, but successful attacks could grant control over the Nezha panel and the infrastructure it manages, affecting organizations that use OAuth2 and leave the dashboard_host setting empty. Leadership should prioritize immediate mitigations because no vendor-released patch identified at time of analysis.
Configure dashboard_host to a non-empty value, validate Host headers at the reverse proxy, enforce strict redirect URI whitelisting at the identity provider, and disable OAuth2 login if not required.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Unauthenticated path traversal in Nezha Monitoring (nezhahq/nezha) before 2.0.13 allows remote attackers to read arbitra
Host header injection in Nezha Monitoring versions 1.0.0 through 2.2.0 allows unauthenticated remote attackers to redire
Unbounded WebSocket stream allocation in Nezha Monitoring versions 1.0.0 through 2.1.x allows any authenticated dashboar
Nezha Monitoring versions 2.0.14 through 2.1.0 (exclusive) allows any authenticated user to exploit the NAT-based Host c
Cross-tenant session hijacking in Nezha Monitoring (v1.14.13-1.14.14 and v2.0.0-2.0.9) lets any authenticated low-privil
Nezha Dashboard releases before 2.6.0 carry a bundled set of authorization, tenant-isolation and resource-exhaustion def
Nezha monitoring dashboards running versions 1.0.0 through 2.3.14 can be knocked offline by an authenticated user who ho
Resource exhaustion in Nezha 2.0.13 through 2.3.14 allows an authenticated user to open unbounded concurrent connections
Cleartext third-party credentials are exposed to any authenticated principal holding DDNS read access in Nezha versions
Permanent deadlock of the alerting subsystem in Nezha Dashboard 1.8.0 through 2.3.12 allows any authenticated non-admin
Authenticated privilege escalation in Nezha Dashboard before 2.3.5 lets any account holding the nezha:service:write scop
Denial of service in the Nezha monitoring dashboard before 2.3.8 lets any authenticated non-administrator account crash
EUVD-2026-88025
GHSA-62gj-x2f3-j2wj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB