Nezha Monitoring: OAuth2 Redirect URL β Host Header Injection (nezhahq nezha)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.29 % Β· percentile 22 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Deferred
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.
Weaknesses (CWE)
- CWE-601 β URL Redirection to Untrusted Site
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-9rc6-8cjv-rcvx β Nezha Monitoring: OAuth2 Redirect URL β Host Header Injection
- GO-2026-5829 β Nezha Monitoring: OAuth2 Redirect URL β Host Header Injection in github.com/nezhahq/nezha
European references
- ENISA EUVD Β· EUVD-2026-36602
- GCVE Β· GCVE-0-2026-53523
Affected products
| Product | Versions |
|---|---|
| nezhahq Β· nezha | affected >= 1.0.0, < 2.2.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |