CVE-2026-101090
CRITICAL 9.3CVSS 4.0Nezha: OAuth2 redirect_uri Host header injection regression when dashboard_host is empty
Nezha 2.2.3 contains a Host header injection regression in the OAuth2 redirect endpoint. When the new optional dashboard_host setting is empty, /api/v1/oauth2/{provider} (cmd/dashboard/controller/oauth2.go) reflects the attacker-supplied HTTP Host header into the redirect_uri sent to the identity provider instead of falling back to the configured install_host. An attacker who induces a victim to begin OAuth2 login via a request that reaches Nezha with a forged Host header can cause an attacker-controlled callback URL to be used as the redirect_uri; if the OAuth2 provider accepts it, the victim's authorization code is delivered to the attacker origin, allowing the attacker to complete the OAuth2 login/binding flow and take over the account. This regresses the fix for GHSA-9rc6-8cjv-rcvx and is configuration-dependent (dashboard_host empty). At the time of the advisory no patched version was available.
- Published
- 27 Sep 2026
- Last modified
- 28 Sep 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-601
- Also known as
- GHSA-rf68-8gjr-36q7GO-2026-6486
- Sources
- NVDJSONOSV GHSA-rf68-8gjr-36q7JSONOSV GO-2026-6486JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/nezhahq/nezha | = 2.2.3 | |
| OSV | Go | github.com/nezhahq/nezha | all versions |
References
- https://github.com/nezhahq/nezha/security/advisories/GHSA-rf68-8gjr-36q7 · WEB, ADVISORY
- https://www.vulncheck.com/advisories/nezha-through-2.2.3-host-header-injection-via-oauth2-redirect-uri
- https://github.com/nezhahq/nezha/commit/38824dbc11a63964c5b9296ae4c68e62b34fa04b · WEB, FIX
- https://github.com/nezhahq/nezha · PACKAGE
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 27 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Sep 2026)