CVE-2026-101090nezhahq nezha
Host Header Injection in OAuth2 Redirect in Nezha
Critical 9.3 No auth needed
Follow: this CVE · nezhahq · nezhahq nezha We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 27, 2026
- Updated
- Sep 28, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
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
What happens
Nezha 2.2.3 contains a Host header injection regression in the OAuth2 redirect endpoint. When the dashboard_host setting is empty, the /api/v1/oauth2/{provider} endpoint reflects the attacker-supplied Host header into the redirect_uri sent to the identity provider. An attacker can induce a victim to initiate OAuth2 login with a forged Host header to redirect the authorization code to an attacker-controlled origin, enabling account takeover.
Show the original NVD text
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.
What to do
No patch data
Configure the dashboard_host parameter with an explicit value instead of leaving it empty to prevent Host header reflection.
- Apply the vendor's security update for nezha.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/nezhahq/nezha |
2.2.3 |
no fixed version | — |
| Go | github.com/nezhahq/nezha |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-rf68-8gjr-36q7, GO-2026-6486). Check the version in your lockfile before upgrading.
Affected products
- nezhahq · nezha
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.