Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Nezha instance with OAuth2 enabled
-
DeliveryCraft OAuth2 login URL with malicious Host header
-
ExploitDeliver phishing link to target administrator
-
InstallVictim initiates OAuth2 authentication flow
-
C2Nezha constructs callback URL using injected Host
-
ExecuteOAuth authorization code delivered to attacker domain
-
ImpactAttacker exchanges code for session access
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 | Exploitation requires three concurrent conditions: (1) The target Nezha Monitoring instance must have OAuth2 authentication configured and enabled - instances using only local/password authentication do not exercise the vulnerable getRedirectURL code path. (2) The instance must be reachable in a deployment where the HTTP Host header is not normalized or overridden by an intermediary reverse proxy before reaching Nezha - deployments behind nginx, Caddy, or similar with explicit Host header enforcement are not exploitable via this vector. (3) A legitimate user with a valid OAuth2 account (such as an administrator) must be induced to initiate an OAuth2 login flow via an attacker-crafted link, satisfying the UI:R requirement. Exploitation is limited by: the AC:H complexity of reliably delivering a Host-injected request to a victim; the prevalence of reverse proxy deployments that silently nullify the attack; and the need for targeted social engineering rather than opportunistic scanning. No special platform, OS, or network topology beyond the above is required. |
| Impact | The NVD CVSS 3.1 score of 6.8 with vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N represents a moderate-to-high real-world risk under the right deployment conditions. AC:H accurately reflects that Host header manipulation is non-trivial: many deployments of self-hosted tools sit behind reverse proxies (nginx, Caddy, Traefik) that normalize or override the Host header before it reaches the application, effectively neutralizing the attack vector - this is a meaningful risk-reduction factor for well-architected deployments. The C:H and I:H impacts are justified because a successful redirect can capture OAuth authorization codes or tokens, enabling full account takeover. No EPSS data was available in the provided intelligence, so exploitation probability cannot be quantified. The vulnerability is not in CISA KEV and no public exploit code has been reported, indicating limited adversarial interest at time of analysis. For directly-exposed Nezha instances (no reverse proxy) with OAuth2 enabled and internet-accessible administrative users, real-world risk is meaningfully high despite the moderate overall score. The UI:R requirement limits opportunistic mass exploitation but does not prevent targeted social engineering against known administrators. |
| Exploit ScenarioDerived | An attacker targeting a Nezha instance with OAuth2 enabled and no Host-normalizing reverse proxy crafts a link to the instance's OAuth2 initiation endpoint, ensuring the HTTP Host header is set to an attacker-controlled domain. The attacker socially engineers a Nezha administrator - via email, messaging, or a watering-hole page - into clicking the link and completing the OAuth2 login flow; the OAuth authorization code or token is then delivered to the attacker's server, granting full account access. No public proof-of-concept code has been identified at time of analysis, but the attack technique is well-understood and requires no specialized tooling beyond the ability to set custom HTTP headers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 12, 2026
Host header injection in Nezha Monitoring versions 1.0.0 through 2.2.0 allows unauthenticated remote attackers to redirect OAuth2 callback URLs to attacker-controlled domains, enabling OAuth token theft and account takeover. The flaw resides in the getRedirectURL function (oauth2.go:22-29), which blindly concatenates the HTTP request's Host header with a fixed path when constructing the OAuth2 redirect URL, with no allowlisting or validation performed. A vendor-released patch exists in version 2.2.0; no public exploit has been identified at time of analysis and the vulnerability is not in the CISA KEV catalog.
RemediationAI
Vendor-released patch: version 2.2.0. Upgrade to Nezha Monitoring 2.2.0 or later immediately; this release introduces Host header validation in the OAuth2 callback URL construction and is the definitive fix. Details are available at https://github.com/nezhahq/nezha/security/advisories/GHSA-9rc6-8cjv-rcvx. If immediate patching is not possible, deploy Nezha behind a reverse proxy (nginx, Caddy, or Traefik) configured to explicitly set and enforce the canonical Host header - for example, using nginx's proxy_set_header Host directive with a hardcoded value - which prevents attacker-supplied Host headers from reaching the application entirely; note this mitigates the injection but does not fix the underlying code. As an additional control, temporarily disabling OAuth2 authentication and reverting to an alternate login method eliminates the vulnerable code path at the cost of SSO functionality. Restricting access to the Nezha dashboard to trusted network ranges via firewall rules reduces the pool of potential attackers able to deliver the crafted OAuth link.
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
The vulnerability is rooted in Nezha Monitoring's OAuth2 authentication subsystem, specifically in the getRedirectURL function at oauth2.go lines 22-29. When a user initiates an OAuth2 login flow, the application constructs the redirect/callback URL by string-concatenating the HTTP Host header - which is fully attacker-controllable in direct-exposure deployments - with a fixed path suffix. No server-side validation, allowlisting, or canonicalization of the Host header value is applied before this concatenation. CWE-601 (URL Redirection to Untrusted Site / Open Redirect) describes the root cause class: user-supplied input directly influences a redirect destination without validation. The affected CPE is cpe:2.3:a:nezhahq:nezha:*:*:*:*:*:*:*:* covering all releases from 1.0.0 to before 2.2.0. HTTP Host header injection is a well-documented attack class commonly exploited in password-reset poisoning and OAuth flow hijacking, and is particularly effective in self-hosted tools where operators may not deploy a reverse proxy that canonicalizes the Host header.
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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Network vector with high complexity for Host header manipulation; no privileges required but victim must complete OAuth flow for token exfiltration.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. From version 1.0.0 to before version 2.2.0, the getRedirectURL function in oauth2.go:22-29 constructs the OAuth2 callback URL by concatenating the request's Host header with a fixed path, with zero validation of the Host header. This can result in host header injection. This issue has been patched in version 2.2.0.
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
Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re
Unauthenticated path traversal in Nezha Monitoring (nezhahq/nezha) before 2.0.13 allows remote attackers to read arbitra
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 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
Nezha Monitoring versions prior to 2.2.5 expose stored third-party API credentials in plaintext through two listing API
Vendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-36602
GHSA-9rc6-8cjv-rcvx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB