Description
Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. Prior to version 2.0.13, fallbackToFrontend in the dashboard's NoRoute handler treats any URL whose raw string starts with /dashboard as an admin-frontend asset request. The check uses strings.HasPrefix, not a path-segment match, so the input /dashboard../data/config.yaml is accepted; strings.TrimPrefix leaves ../data/config.yaml; and path.Join("admin-dist", "../data/config.yaml") normalizes to data/config.yaml — which os.Stat finds and http.ServeFile returns. No authentication required. This issue has been patched in version 2.0.13.
Published: 2026-06-12
Score: 9.1 Critical
EPSS: 1.9% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A pre‑authentication path traversal flaw exists in Nezha Monitoring. By crafting a URL that starts with "/dashboard" followed by two dots and a directory traversal payload, an unauthenticated user can cause the server to serve the file "/data/config.yaml". The configuration file contains the jwt_secret_key, exposing sensitive secrets to the attacker.

Affected Systems

Nezha Monitoring deployments of nezhahq:nezha earlier than version 2.0.13 are vulnerable. Any installed instance using the default asset routing without authentication can be impacted.

Risk and Exploitability

The vulnerability has a CVSS score of 9.1, indicating a high level of severity. The EPSS score is 2%, and the attack requires only network access to the monitoring web interface; this attack vector is inferred from the description and is not explicitly stated. The likely attack vector is a remote actor sending a crafted URL to the monitoring web interface over HTTP/HTTPS. It is not listed in the CISA KEV catalog and no public exploits have been reported, yet the lack of authentication and the path traversal logic make it a prime target for attackers seeking to steal configuration secrets.

Generated by OpenCVE AI on August 14, 2026 at 15:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nezha Monitoring to version 2.0.13 or later.
  • Restrict external access to the Nezha Monitoring web interface using firewall rules, VPN, or network segmentation.
  • Configure the web server to require authentication for the /dashboard routes or disable public access to the dashboard.

Generated by OpenCVE AI on August 14, 2026 at 15:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5c25-7vpj-9mqh Nezha Monitoring: Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key
History

Mon, 15 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 13 Jun 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Nezhahq
Nezhahq nezha
Vendors & Products Nezhahq
Nezhahq nezha

Fri, 12 Jun 2026 21:45:00 +0000

Type Values Removed Values Added
Description Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. Prior to version 2.0.13, fallbackToFrontend in the dashboard's NoRoute handler treats any URL whose raw string starts with /dashboard as an admin-frontend asset request. The check uses strings.HasPrefix, not a path-segment match, so the input /dashboard../data/config.yaml is accepted; strings.TrimPrefix leaves ../data/config.yaml; and path.Join("admin-dist", "../data/config.yaml") normalizes to data/config.yaml — which os.Stat finds and http.ServeFile returns. No authentication required. This issue has been patched in version 2.0.13.
Title Nezha Monitoring: Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-15T18:27:12.779Z

Reserved: 2026-06-09T17:30:33.456Z

Link: CVE-2026-53519

cve-icon Vulnrichment

Updated: 2026-06-15T18:27:02.415Z

cve-icon NVD

Status : Deferred

Published: 2026-06-12T22:16:51.953

Modified: 2026-06-17T10:57:57.453

Link: CVE-2026-53519

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T15:15:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')