CVE-2026-53523
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedNezha 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceNezha Monitoring versions 1.0.0 through before 2.2.0 contain a host header injection vulnerability in the getRedirectURL function (oauth2.go:22-29). The function constructs the OAuth2 callback URL by directly concatenating the incoming request's Host header with a fixed path, without any validation or sanitization. An attacker can manipulate the Host header to inject arbitrary hosts into the OAuth2 redirect URL, potentially enabling phishing attacks or theft of authorization codes/tokens.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Nezha Monitoring versionRun 'nezha --version' or check the Docker image tag/binary version used in your deployment. If using a package manager, check with 'dpkg -l nezha' or 'rpm -qi nezha' depending on your OS.Affected if The version displayed is 1.0.0 or higher but lower than 2.2.0 (for example, 1.5.3, 2.0.1, 2.1.9 would all be affected).
-
Check if OAuth2 authentication is configuredExamine your Nezha configuration file (commonly config.yml or similar in the installation directory) for OAuth2-related settings under an 'oauth2' or 'login' section, or check environment variables if using Docker.Affected if OAuth2 login is enabled and configured with a provider (such as GitHub, Google, or other OAuth2 providers). If OAuth2 is not enabled, the vulnerable code path may not be exercised.
-
Verify the getRedirectURL function processes requestsReview server logs or network traffic to confirm OAuth2 callback requests are being handled by your Nezha instance. The vulnerability is triggered when a user initiates OAuth2 login and the callback URL is constructed.Affected if Your Nezha instance handles OAuth2 login flows and constructs callback URLs using the incoming Host header without additional validation at a reverse proxy level.
You are affected if your Nezha Monitoring version is 1.0.0 or higher but lower than 2.2.0 AND you have OAuth2 authentication enabled, allowing attackers to manipulate the redirect URL via the Host header.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to Nezha Monitoring version 2.2.0 or later which includes proper validation of the Host header. If immediate patching is not possible, implement host allow-listing at the web server or application level to validate the Host header against trusted domains.
2.2.0
- 1. Back up the current Nezha Monitoring installation and its configuration data
- 2. Download Nezha Monitoring version 2.2.0 from the official GitHub repository or release channel
- 3. Upgrade the existing installation to version 2.2.0 following the standard upgrade procedure for your deployment method (Docker, binary, or package manager)
- 4. Verify the fix by reviewing oauth2.go to confirm the getRedirectURL function now includes proper Host header validation
- 5. Test the OAuth2 login flow to ensure the callback URL is correctly constructed and no open redirect occurs
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-53523 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-53523 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data