Account takeover via OAuth2 Host header injection
Published Jun 12, 2026 · Updated Jun 12, 2026
Open redirect in Nezha Monitoring before 2.2.0 allows remote attackers to capture OAuth2 codes through a forged Host header. The getRedirectURL function in cmd/dashboard/controller/oauth2.go directly concatenates the unvalidated request Host with the callback path and supplies it as OAuth2 Config.RedirectURL. Exploitation requires the forged Host to reach the Dashboard, a provider to accept the redirect URI, and a victim to authenticate; captured codes enable account takeover with the victim's permissions.
Summary
What happened
Open redirect in Nezha Monitoring before 2.2.0 allows remote attackers to capture OAuth2 codes through a forged Host header. The getRedirectURL function in cmd/dashboard/controller/oauth2.go directly concatenates the unvalidated request Host with the callback path and supplies it as OAuth2 Config.RedirectURL. Exploitation requires the forged Host to reach the Dashboard, a provider to accept the redirect URI, and a victim to authenticate; captured codes enable account takeover with the victim's permissions.
The record
- CVE
- CVE-2026-53523
- Published
- Jun 12, 2026
- Updated
- Jun 12, 2026
- Vendor
- NezhaHQ
- Product
- Nezha Monitoring
- Classifications
- CWE-601, T1528
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 12, 2026CVE publishedPublication date reported by the CVE source.
- Jun 12, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 1.0.0, < 2.2.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Conceptual OAuth2 authorization-code capture proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo