Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-53523 EUVD-2026-36602GHSA-9rc6-8cjv-rcvxGO-2026-5829

Nezha Monitoring: OAuth2 Redirect URL — Host Header Injection

Published Jun 12, 2026 · Updated Jun 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
nezhahq nezha >= 1.0.0, < 2.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/nezhahq/nezha >= 1.0.0, < 2.2.0 2.2.0 GHSA-9rc6-8cjv-rcvx
Go github.com/nezhahq/nezha >= 1.0.0 — GO-2026-5829

Advisories 1

References