Skip to main content

Nezha Dashboard CVE-2026-47268

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-29 https://github.com/nezhahq/nezha GHSA-6x26-5727-rrm9
6.4
CVSS 3.1 · Vendor: https://github.com/nezhahq/nezha
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Nezha dashboard with low-privilege account
  2. Delivery
    Create DDNS profile with provider=webhook and internal target URL, method, and headers
  3. Exploit
    Attach malicious DDNS profile to owned server
  4. Execution
    Trigger agent IP-change report or server update to invoke DDNS pipeline
  5. Persist
    Dashboard process issues attacker-controlled HTTP request to internal network target
  6. Impact
    State-changing or probing action executed against internal service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid, authenticated Nezha dashboard user session - CVSS PR:L confirms low-privilege authentication is sufficient, not administrator rights. The DDNS API endpoints are registered without admin-only middleware, so any authenticated user can create webhook DDNS profiles (POST /api/v1/ddns) and update them (PATCH /api/v1/ddns/:id). The attacker must own at least one server registered in the dashboard to attach the malicious DDNS profile. DDNS updates are triggered automatically when an authenticated agent reports a changed IP via the gRPC path (service/rpc/nezha.go:247-279) or when a server record is updated (service/singleton/server.go:44-58), requiring no administrative action after initial profile configuration. Exploitation is bounded by: (1) the requirement for a valid authenticated session, limiting casual unauthenticated attacks; (2) blind SSRF only - response bodies are not returned, preventing direct data exfiltration without an additional disclosure primitive; (3) impact constrained to services reachable from the dashboard host's network position.

Impact

The CVSS 6.4 Medium score (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) accurately reflects the attack surface: network-exploitable with low complexity, requiring only low-privilege authentication, no user interaction, and achieving changed scope by crossing the process boundary into internal network services. The PR:L signal confirms that exploitation is limited to authenticated users, which reduces risk in single-user or tightly controlled deployments but is a meaningful attack surface in multi-tenant or team deployments where non-administrative accounts exist. The changed scope (S:C) is correctly applied - the dashboard process acts as a proxy into the internal network. A proof-of-concept is publicly available within the GitHub advisory (GHSA-6x26-5727-rrm9), confirmed against v2.0.9, demonstrating this is not theoretical. No EPSS score was provided in the input data; no CISA KEV listing was identified. Real-world severity scales significantly with deployment context: a dashboard host able to reach cloud metadata endpoints (e.g., 169.254.169.254) or internal management APIs would face substantially elevated impact beyond the moderate base score. The blind nature of the SSRF (response body not returned in confirmed path) prevents direct secret exfiltration but does not mitigate state-changing requests.

Exploit ScenarioDerived

An attacker with a low-privileged Nezha dashboard account creates a DDNS profile specifying provider=webhook with webhook_url set to an internal target such as http://169.254.169.254/latest/meta-data/ and a custom X-Forwarded-For header, then attaches the profile to a server they control. When their registered agent reports a changed IP address - a routine operation - the dashboard process automatically traverses the DDNS update pipeline and issues the fully attacker-controlled HTTP request from the dashboard host's network position to the internal target. A safe local proof-of-concept included in the GitHub advisory confirms this full pipeline traversal, observing a POST to a loopback listener with attacker-controlled body and headers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Blind SSRF in Nezha Dashboard (v0.20.0-v2.0.9) allows any low-privileged authenticated user to force the dashboard process to issue arbitrary HTTP requests to loopback and internal network addresses by configuring a malicious DDNS webhook profile. The attacker fully controls the request method, URL, headers, and body, enabling probing or manipulation of internal services that trust the dashboard host's network position. A publicly available proof-of-concept confirms full pipeline exploitation against a loopback listener; no public exploit identified at time of analysis in CISA KEV.

RemediationAI

Upgrade Nezha Dashboard to version 2.0.10, which is confirmed as the patched release per the vendor advisory GHSA-6x26-5727-rrm9 at https://github.com/nezhahq/nezha/security/advisories/GHSA-6x26-5727-rrm9. If immediate upgrade is not feasible, apply egress firewall rules on the dashboard host blocking outbound HTTP and HTTPS to RFC-1918 private address ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and link-local ranges including cloud metadata addresses such as 169.254.169.254; note that this control may break legitimate DDNS webhook use cases if those webhooks target internal services. As an additional measure, restrict creation of authenticated dashboard user accounts to only trusted personnel until the patch is applied, since exploitation requires a valid user session. Disabling the webhook DDNS provider type via configuration, if supported in your deployment, would eliminate the attack surface entirely at the cost of all DDNS webhook functionality.

Affected Packages

go github.com/naiba/nezha no fix
go github.com/nezhahq/nezha fix: 2.0.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nezha is a Go-based server monitoring dashboard (pkg:go/github.com/nezhahq/nezha). The vulnerable sink is the DDNS webhook provider at pkg/ddns/webhook/webhook.go, which constructs and dispatches HTTP requests via utils.HttpClient using fully attacker-controlled parameters - method, URL (including scheme and host), headers, and body - sourced directly from a persisted model.DDNSProfile with no destination validation. CWE-918 (Server-Side Request Forgery) applies precisely: the server fetches a user-supplied URL without validating the target against private or reserved address ranges. The codebase already implements SSRF mitigations for notification webhooks in model/notification.go, including private CIDR blocklists, redirect disabling, hostname requirement, and scheme enforcement, but equivalent controls were never applied to the DDNS webhook code path. The DDNS API endpoints (POST /api/v1/ddns, PATCH /api/v1/ddns/:id) are registered without administrator-only middleware at cmd/dashboard/controller/controller.go:137-140, making them accessible to all authenticated users.

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

Vendor (https://github.com/nezhahq/nezha) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/nezhahq/nezha).

CVSS VectorVendor: https://github.com/nezhahq/nezha

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

An authenticated Nezha dashboard user can create or update a DDNS profile with provider webhook and configure an arbitrary webhook_url, HTTP method, request body, and headers. When DDNS is triggered for a server that uses that profile, the dashboard process sends the configured request with utils.HttpClient without the SSRF protections used by notification webhooks.

This allows a low-privileged authenticated user who controls an owned server/DDNS profile to make the dashboard host issue HTTP requests to loopback or internal network services. The response body is not returned to the attacker in the confirmed path, so this is a blind SSRF / internal state-changing request primitive.

Details

The DDNS API is available to authenticated users, not only administrators:

  • cmd/dashboard/controller/controller.go:137 registers GET /api/v1/ddns.
  • cmd/dashboard/controller/controller.go:139 registers POST /api/v1/ddns.
  • cmd/dashboard/controller/controller.go:140 registers PATCH /api/v1/ddns/:id.

The create and update handlers copy attacker-controlled webhook fields directly from JSON request bodies into model.DDNSProfile:

  • cmd/dashboard/controller/ddns.go:47-74 accepts model.DDNSForm and stores WebhookURL, WebhookMethod, WebhookRequestType, WebhookRequestBody, and WebhookHeaders.
  • cmd/dashboard/controller/ddns.go:112-145 updates the same fields after profile ownership is checked.
  • model/ddns_api.go:11-15 exposes these fields as JSON input.
  • model/ddns.go:28-33 stores these fields on the persisted profile.

Users can attach owned DDNS profiles to owned servers, and DDNS updates are triggered in common server update and agent IP-reporting paths:

  • cmd/dashboard/controller/server.go:63-83 checks DDNS profile ownership, then stores EnableDDNS, DDNSProfiles, and OverrideDDNSDomains on an owned server.
  • service/singleton/server.go:44-58 calls UpdateDDNS when a server with DDNS enabled is updated.
  • service/rpc/nezha.go:247-279 calls UpdateDDNS when an authenticated agent reports a changed IP.

The DDNS provider dispatcher instantiates the webhook provider when Provider == "webhook":

  • service/singleton/ddns.go:58-95, especially service/singleton/ddns.go:79-81.

The sink is the DDNS webhook provider:

  • pkg/ddns/webhook/webhook.go:49-65 prepares and sends the HTTP request with utils.HttpClient.Do(req).
  • pkg/ddns/webhook/webhook.go:85-100 formats and applies attacker-controlled headers.
  • pkg/ddns/webhook/webhook.go:91-92 creates the request with the configured method and URL.
  • pkg/ddns/webhook/webhook.go:117-134 parses the configured URL and only formats query parameters; it does not restrict scheme, host, IP range, or redirects.
  • pkg/ddns/webhook/webhook.go:137-158 builds attacker-controlled request bodies for POST/PATCH/PUT.

The project already contains SSRF defenses for notification webhooks, showing the expected mitigation pattern is absent from the DDNS webhook path:

  • model/notification.go:34-58 defines blocked private/reserved CIDRs.
  • model/notification.go:193-221 creates a notification HTTP client that resolves and pins a validated IP and disables redirects.
  • model/notification.go:229-263 only allows http/https, requires a hostname, resolves all addresses, and rejects disallowed IPs.
  • model/notification.go:265-276 rejects blocked ranges and non-global-unicast targets.

Equivalent validation was not found in pkg/ddns/webhook/webhook.go.

Safe local PoC

Environment:

  • Repository: https://github.com/nezhahq/nezha.git
  • Commit tested: 05e5da2535197fc223b79601d50eeea362dcf853
  • Tag at commit: v2.0.9
  • Module: github.com/nezhahq/nezha
  • Go version: go1.26.3 linux/amd64
  • Testing scope: local-only; loopback HTTP listener and fake local UDP DNS SOA server only.

A temporary same-package test was created and removed automatically after execution. It used a local httptest listener as the internal service and a local UDP DNS server that returned an SOA for example.com.. The test then executed the normal DDNS update pipeline with a webhook DDNS profile pointing at the loopback HTTP listener.

Command run:

bash
tmp="pkg/ddns/ddns_ssrf_local_poc_test.go"; trap 'rm -f "$tmp"' EXIT; cat > "$tmp" <<'EOF'
package ddns

import (
    "context"
    "io"
    "net"
    "net/http"
    "net/http/httptest"
    "testing"

    "github.com/miekg/dns"
    "github.com/nezhahq/nezha/model"
    "github.com/nezhahq/nezha/pkg/ddns/webhook"
)

func TestLocalPoCDDNSUpdatePipelineReachesLoopback(t *testing.T) {
    hit := make(chan string, 1)
    httpSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        body, _ := io.ReadAll(r.Body)
        hit <- r.Method + " " + r.URL.Path + " " + r.Header.Get("X-Proof") + " " + string(body)
        w.WriteHeader(http.StatusNoContent)
    }))
    defer httpSrv.Close()

    dnsPacketConn, err := net.ListenPacket("udp", "127.0.0.1:0")
    if err != nil {
        t.Fatal(err)
    }
    dnsSrv := &dns.Server{PacketConn: dnsPacketConn, Handler: dns.HandlerFunc(func(w dns.ResponseWriter, r *dns.Msg) {
        msg := new(dns.Msg)
        msg.SetReply(r)
        if len(r.Question) > 0 && r.Question[0].Qtype == dns.TypeSOA {
            msg.Answer = append(msg.Answer, &dns.SOA{
                Hdr:     dns.RR_Header{Name: "example.com.", Rrtype: dns.TypeSOA, Class: dns.ClassINET, Ttl: 60},
                Ns:      "ns.example.com.",
                Mbox:    "hostmaster.example.com.",
                Serial:  1,
                Refresh: 60,
                Retry:   60,
                Expire:  60,
                Minttl:  60,
            })
        }
        _ = w.WriteMsg(msg)
    })}
    go func() { _ = dnsSrv.ActivateAndServe() }()
    defer dnsSrv.Shutdown()

    enableIPv4 := true
    enableIPv6 := false
    profile := &model.DDNSProfile{
        EnableIPv4:         &enableIPv4,
        EnableIPv6:         &enableIPv6,
        MaxRetries:         1,
        Domains:            []string{"host.example.com"},
        Provider:           model.ProviderWebHook,
        WebhookURL:         httpSrv.URL + "/internal",
        WebhookMethod:      2,
        WebhookRequestType: 1,
        WebhookRequestBody: `{"ip":"#ip#","domain":"#domain#","type":"#type#"}`,
        WebhookHeaders:     `{"X-Proof":"nezha-ddns-pipeline-ssrf"}`,
    }
    provider := &Provider{
        DDNSProfile: profile,
        IPAddrs:     &model.IP{IPv4Addr: "203.0.113.10"},
        Setter:      &webhook.Provider{DDNSProfile: profile},
    }

    ctx := context.WithValue(context.Background(), DNSServerKey{}, []string{dnsPacketConn.LocalAddr().String()})
    if err := provider.updateDomain(ctx, "host.example.com"); err != nil {
        t.Fatalf("updateDomain returned error: %v", err)
    }

    select {
    case got := <-hit:
        t.Logf("observed loopback request through DDNS update pipeline: %s", got)
    default:
        t.Fatalf("expected loopback listener to receive DDNS webhook request")
    }
}
EOF
go test ./pkg/ddns -run TestLocalPoCDDNSUpdatePipelineReachesLoopback -v

Observed output:

text
=== RUN   TestLocalPoCDDNSUpdatePipelineReachesLoopback
    ddns_ssrf_local_poc_test.go:76: observed loopback request through DDNS update pipeline: POST /internal nezha-ddns-pipeline-ssrf {"ip":"203.0.113.10","domain":"host.example.com","type":"ipv4"}
--- PASS: TestLocalPoCDDNSUpdatePipelineReachesLoopback (0.00s)
PASS
ok  	github.com/nezhahq/nezha/pkg/ddns	0.009s

A lower-level provider-only confirmation was also run with go test ./pkg/ddns/webhook -run TestLocalPoCDDNSWebhookReachesLoopback -v and observed:

text
observed loopback request: POST /internal nezha-ddns-ssrf {"ip":"203.0.113.10","domain":"host.example.com","type":"ipv4"}

Cleanup:

  • Both temporary PoC test files were removed by shell trap.
  • find . -path './.git' -prune -o \( -name 'ssrf_local_poc_test.go' -o -name 'ddns_ssrf_local_poc_test.go' \) -print returned no files.
Impact

An authenticated dashboard user can cause the Nezha dashboard process to send arbitrary HTTP requests to services reachable from the dashboard host, including loopback and private network targets. The confirmed path allows attacker-controlled method, URL path/query, headers, and request body.

Potential impacts depend on deployment and reachable internal services, but include:

  • Blind probing of internal HTTP services from the dashboard network location.
  • Triggering state-changing internal endpoints that trust localhost or private network origins.
  • Reaching services not exposed to the attacker directly.
  • Interaction with cloud metadata or control-plane endpoints if reachable and not otherwise protected.

The response body is not returned to the attacker in the confirmed code path, so this should not be described as direct arbitrary internal file/secret read without an additional response-disclosure primitive.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:go/github.com_nezhahq_nezha

Vendor StatusVendor

SUSE

Severity: Moderate
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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy