CVE-2026-53523 Details
Description
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.
A host header injection vulnerability has been identified in Nezha Monitoring versions 1.0.0 prior to 2.2.0. The issue arises in the 'getRedirectURL' function, where the OAuth2 callback URL is constructed by directly concatenating the request's Host header with a fixed path, without any validation of the Host header. This flaw allows an attacker to manipulate the Host header and intercept OAuth2 authorization codes, potentially leading to account takeover and privilege escalation, especially if the victim is an admin.
Users are advised to update to Nezha Monitoring version 2.2.0 or later. For those unable to update, validate the Host header against a configured allowlist of known dashboard hostnames, pin the redirect URL to the configured dashboard URL, remove Host header-based URL construction entirely, and add Host header validation middleware for all OAuth2-related endpoints.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 12, 2026CISA-ADP
Assessed Jun 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nezhahq/nezha/security/advisories/GHSA-9rc6-8cjv-rcvx | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/nezhahq/nezha/security/advisories/GHSA-9rc6-8cjv-rcvx | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Nezha Monitoring | >= 1.0.0, < 2.2.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | CVE Modified | CISA-ADP |
| Jun 12, 2026 | New CVE Received | [email protected] |
Volerion