CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-WW5P-J6CJ-6MQQ

GHSA-WW5P-J6CJ-6MQQ: Credential Exposure in Nezha Dashboard DDNS and Notification APIs

Amit Schendel
Amit Schendel
Senior Security Researcher

Jun 27, 2026·7 min read·14 visits

Executive Summary (TL;DR)

Nezha Dashboard prior to version 2.2.5 leaks high-privilege third-party integration credentials (such as Cloudflare tokens and webhook authorization headers) in plaintext via the authenticated list endpoints for DDNS and notifications.

GHSA-WW5P-J6CJ-6MQQ is a technical credential exposure vulnerability in Nezha Dashboard prior to version 2.2.5. The vulnerability allows authenticated administrative users or actors possessing scoped read-only Personal Access Tokens (PATs) to exfiltrate plaintext third-party API credentials, secret keys, and webhook authorization headers due to a lack of data redaction during API object serialization.

Vulnerability Overview

Nezha Dashboard is an open-source server monitoring and administration panel written in Go. The dashboard allows administrators to manage servers, monitor system resource metrics, configure Dynamic DNS (DDNS) providers, and set up notification channels (such as Slack, Telegram, or Discord webhooks) for alert thresholds.

The attack surface exists within the authenticated REST API endpoints exposed by the dashboard controller layer. Specifically, the endpoints GET /api/v1/ddns and GET /api/v1/notification are queryable by authenticated administrators or users with scoped Personal Access Tokens (PATs). This implementation introduces a significant vulnerability categorized under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor).

The vulnerability stems from a design pattern where database-level model representations of DDNS profiles and Notification configurations are copied and returned directly to the client interface. Because these models contain plaintext authentication material—such as Cloudflare API tokens, TencentCloud SecretKeys, and Slack webhook URLs containing embedded tokens—the API response exposes these credentials to anyone with read access to these panels.

Root Cause Analysis

The core of the vulnerability resides in how Nezha Dashboard manages and serializes data structures inside the cmd/dashboard/controller and model packages. In Go, structures representing database tables or configuration states often contain sensitive fields alongside general metadata. When serializing these structures to JSON via web frameworks like Gin, any field not explicitly ignored, redacted, or marked as private is included in the raw HTTP response.

To prevent concurrent mutation bugs on the global in-memory state, the handlers listDDNS and listNotification deep-copy the configurations using the github.com/jinzhu/copier library. However, the target structures (model.DDNSProfile and model.Notification) retain their sensitive string fields during this cloning process. In versions of Nezha Dashboard prior to 2.2.5, no subsequent cleanup operations were performed on these copied instances before returning them to the controller's serializer.

As a consequence, the JSON output contains write-capable credentials in cleartext. For DDNS configurations, the AccessSecret and WebhookHeaders fields are left fully populated. For notifications, fields like URL (often containing Telegram bot tokens or Slack webhook keys), RequestHeader (frequently holding Authorization: Bearer strings), and RequestBody are left unredacted. This implementation breaks the security principle of least privilege, as read-only endpoints should never expose the high-privilege credentials required to authenticate or write to external systems.

Code Analysis

Analyzing the code from the affected versions exposes the direct pathway of the credential leak. In cmd/dashboard/controller/ddns.go, the vulnerable listing function copy-serializes the data without filter loops:

// Vulnerable function in cmd/dashboard/controller/ddns.go
func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) {
    var ddnsProfiles []*model.DDNSProfile
    list := singleton.DDNSShared.GetSortedList()
    if err := copier.Copy(&ddnsProfiles, &list); err != nil {
        return nil, err
    }
    return ddnsProfiles, nil
}

The corresponding patch implemented in commit 39d398066d8c644fe452f74704e34ada6c7ab61e introduces explicit field zeroing on the copied records. Because ddnsProfiles is a fresh copy returned by copier.Copy, setting individual attributes to an empty string does not affect the master state stored in the singleton package.

// Patched function in cmd/dashboard/controller/ddns.go
func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) {
    var ddnsProfiles []*model.DDNSProfile
    list := singleton.DDNSShared.GetSortedList()
    if err := copier.Copy(&ddnsProfiles, &list); err != nil {
        return nil, err
    }
 
    // Redact write-capable credentials prior to serialization
    for _, p := range ddnsProfiles {
        p.AccessSecret = ""
        p.WebhookHeaders = ""
    }
 
    return ddnsProfiles, nil
}

Additionally, the patch must accommodate the standard frontend lifecycle. Typically, web panels retrieve data via a GET request, allow the user to modify parameters, and send the state back via POST or PUT. If the frontend receives blank values for secrets, it sends them back empty. The update handler was therefore updated to ignore empty credentials instead of overwriting existing ones with blank strings:

// Patched update check in cmd/dashboard/controller/ddns.go
if df.AccessSecret != "" {
    p.AccessSecret = df.AccessSecret
}
if df.WebhookHeaders != "" {
    p.WebhookHeaders = df.WebhookHeaders
}

Exploitation and Attack Methodology

Exploitation of GHSA-WW5P-J6CJ-6MQQ does not require complex memory manipulation or binary payloads. The attack vector is low-complexity and requires network access to the Nezha Dashboard API alongside valid credentials. The primary threat comes from users holding low-privilege or read-only administrative credentials, or from attackers who exfiltrate active admin sessions or scoped Personal Access Tokens (PATs).

If an attacker compromises an account with read access to DDNS or notification resources (such as tokens with scopes nezha:ddns:read or nezha:notification:read), they can make direct REST queries to the vulnerable endpoints. The server responds with the raw configuration containing the third-party tokens in cleartext.

An administrative session can be used to query the endpoints using tools like curl and parse the output using jq. An example query targeting the notification endpoint illustrates the risk:

curl -s -H "Authorization: Bearer <token>" \
  https://dashboard.example.com/api/v1/notification \
  | jq '.data[] | {name: .name, url: .url, request_header: .request_header}'

The resulting response payload exposes the full webhook URI, including Slack or Discord bot secrets, and any custom HTTP request headers containing third-party bearer tokens:

{
  "name": "Slack Alert Channel",
  "url": "https://hooks.slack.com/services/T012345/B012345/secret_token_value_here",
  "request_header": "{\"Authorization\":\"Bearer external_service_api_token_value\"}"
}

Using this exfiltrated information, the attacker can move laterally to other services, modifying DNS records at external providers (e.g., Cloudflare) or accessing restricted internal webhooks.

Technical Impact and Lateral Movement

The vulnerability's direct impact is rated as Medium (CVSS v4: 5.5) because high administrative privileges are required to reach the endpoints. However, the subsequent system confidentiality impact is high. The credentials stored in Nezha Dashboard frequently govern the integrity and availability of larger cloud architectures.

For example, exposing Cloudflare API tokens allows adversaries to edit, add, or delete DNS records for any domain managed under that token. This exposure enables domain hijacking, sub-domain takeovers, and the creation of malicious records to facilitate phishing campaigns. Because Nezha Dashboard is used to monitor infrastructure, exposing these keys allows an attacker to manipulate the very infrastructure under observation.

Furthermore, the exposure of Slack or Telegram bot tokens allows unauthorized message interception and spoofing. Attackers can leverage control of official notification bots to push social engineering payloads or fake alerts to team channels. Finally, leaking HTTP Authorization headers can grant immediate access to internal corporate web APIs, violating security segmentation boundaries.

Remediation and Security Hardening

To completely resolve the vulnerability, Nezha Dashboard must be upgraded to version 2.2.5 or later. This version contains the necessary controller-level redaction filters and prevents accidental deletion of secrets during configuration updates.

If patching cannot be executed immediately, administrators should implement strict access control policies on the reverse proxy level. Restricting the /api/v1/ddns and /api/v1/notification endpoints to trusted source IP addresses or requiring VPN access lowers the overall exposure. Additionally, administrators must review and audit all active Personal Access Tokens (PATs) and delete any tokens with read scopes that are no longer required.

Following a patch or upgrade, a thorough credential rotation process must be executed. Because historical logs might not indicate whether sensitive API endpoints were accessed for exfiltration, any API key, OAuth token, webhook URL, or Secret Key previously stored in the dashboard should be considered compromised and rotated immediately.

Official Patches

NezhaHQVendor security advisory and mitigation guidelines.

Fix Analysis (1)

Technical Appendix

CVSS Score
5.5/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

Affected Systems

Nezha Dashboard

Affected Versions Detail

Product
Affected Versions
Fixed Version
Nezha Dashboard
NezhaHQ
< 2.2.52.2.5
AttributeDetail
CWE IDCWE-200
Attack VectorNetwork
CVSS v4 Score5.5 (Medium)
Exploit Statuspoc
ImpactCredential Disclosure
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1552Unsecured Credentials
Credential Access
T1552.004Unsecured Credentials: Private Keys
Credential Access
T1082System Information Discovery
Discovery
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor who is not authorized to have access to that information.

Known Exploits & Detection

GitHub Security AdvisoryAdvisory documenting proof of concept query flow.

Vulnerability Timeline

Patch Commit Authored
2026-06-20
Nezha Dashboard v2.2.5 Published
2026-06-20
GitHub Advisory Published
2026-06-26

References & Sources

  • [1]Nezha Dashboard Security Advisory (GHSA-ww5p-j6cj-6mqq)
  • [2]GitHub Advisory Database: GHSA-WW5P-J6CJ-6MQQ
  • [3]Nezha Release v2.2.5

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•3 days ago•CVE-2026-71556
7.1

CVE-2026-71556: Symbolic Link Directory Traversal in go-git

A symbolic link directory traversal vulnerability was identified in go-git, a pure Go implementation of the Git specification. This vulnerability allows an attacker to construct a repository that, when checked out or processed, bypasses directory boundaries to write or overwrite arbitrary files on the host filesystem.

Amit Schendel
Amit Schendel
17 views•5 min read
•3 days ago•CVE-2026-71557
6.3

CVE-2026-71557: Path Traversal and Configuration Overwrite in go-git Filesystem Storage Engine

CVE-2026-71557 is a path traversal vulnerability in go-git, a pure-Go implementation of Git. In vulnerable versions, the filesystem-backed storage engine fails to validate reference names before mapping them to on-disk paths. An attacker hosting a malicious Git server can advertise references containing directory traversal sequences, such as 'refs/heads/../../config', to write or overwrite files outside the intended reference storage directory.

Amit Schendel
Amit Schendel
10 views•7 min read
•3 days ago•GHSA-7C4V-FWGW-9RF7
5.3

GHSA-7c4v-fwgw-9rf7: Nuxt Dev Server Discloses Project Root and Workspace UUID via Chrome DevTools Endpoint

An information disclosure vulnerability in the Nuxt development server allows adjacent network attackers to retrieve the absolute project root directory and a persistent workspace UUID by querying the unprotected Chrome DevTools workspace endpoint. This occurs when the development server is bound to a network-reachable interface, allowing requests that bypass the header-based security verification checks.

Alon Barad
Alon Barad
11 views•7 min read
•3 days ago•CVE-2026-66062
5.3

CVE-2026-66062: Regular Expression Denial of Service (ReDoS) in SvelteKit Content Negotiation

A Regular Expression Denial of Service (ReDoS) vulnerability exists in SvelteKit's content negotiation header parser prior to version 2.70.2. An unauthenticated remote attacker can exploit this vulnerability by sending a crafted Accept header with highly repetitive malformed values. This triggers catastrophic backtracking on the single-threaded Node.js/Bun event loop, leading to CPU exhaustion and full denial of service.

Alon Barad
Alon Barad
10 views•6 min read
•3 days ago•CVE-2026-15895
8.4

CVE-2026-15895: OS Command Injection in AWS jsii-diff CLI

An OS command injection vulnerability exists in the npm package loading component of the jsii-diff CLI tool within the AWS jsii framework. Prior to version 1.131.0, when parsing package specifiers prefixed with `npm:`, the tool concatenated user-controlled inputs directly into a shell execution string via child_process.exec. This allows attackers to execute arbitrary shell commands under the context of the running Node.js process.

Amit Schendel
Amit Schendel
7 views•7 min read
•3 days ago•CVE-2026-63220
4.8

CVE-2026-63220: Trust of Untrusted Reverse Proxy Headers in CodeIgniter4

CodeIgniter4 versions prior to v4.7.4 contain a protocol-spoofing vulnerability due to improper verification of upstream reverse proxy forwarding headers. Remote, unauthenticated attackers can inject headers like X-Forwarded-Proto to deceive the framework into identifying an insecure HTTP request as a secure HTTPS connection.

Alon Barad
Alon Barad
15 views•7 min read