Nezha Monitoring: Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nezhahq | nezha | before 2.0.13 | 2.0.13 | Patch available | CNA |
| — | github.com/nezhahq/nezha (Go) | before 2.0.13 | 2.0.13 | Patch available | GHSA-5c25-7vpj-9mqh |
- nezha Vendornezhahq Affected before 2.0.13 Fixed in 2.0.13 Patch available CNA
- github.com/nezhahq/nezha (Go) Vendor— Affected before 2.0.13 Fixed in 2.0.13 Patch available GHSA-5c25-7vpj-9mqh
Remediation
- Fix · CNA nezha (nezhahq) Fixed in 2.0.13
- Fix · GHSA-5c25-7vpj-9mqh github.com/nezhahq/nezha (Go) Fixed in 2.0.13 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53519
- 2026-10-03 Alias added: GHSA-5c25-7vpj-9mqh
References
More nezhahq vulnerabilities
- TI-2026-65123 Nezha through 2.2.3 Host Header Injection via OAuth2 redirect_uri CVSS 4.0CRITICAL 9.3
- TI-2026-34341 Nezha Monitoring: RoleMember can run shell on every server (cross-tenant RCE) via POST /api/v1/cron CVSS 3.1CRITICAL 9.9
- TI-2026-34342 Nezha Monitoring: RoleMember-reachable SSRF with full response-body reflection via POST /api/v1/notification CVSS 3.1HIGH 7.7
- TI-2026-38597 Nezha Monitoring: OAuth2 Redirect URL — Host Header Injection CVSS 3.1MEDIUM 6.8
- TI-2026-75131 Memory exhaustion in Nezha file manager WebSocket endpoint CVSS 4.0HIGH 7.1
- TI-2026-75130 Nezha WebSocket transfer endpoint flaw enables denial of service CVSS 4.0HIGH 7.1
Sources
- CVE-2026-53519 · CVE Program
- CVE-2026-53519 · NVD
- FIRST EPSS
- GHSA-5c25-7vpj-9mqh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences