CVE-2026-53519 Nezha Monitoring: Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nezhahq nezha(Go) | < 2.0.13; All versions | 2.0.13 | Partially fixed |
| nezhahq nezha | = < 2.0.13 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nezhahq nezha(Go) | < 2.0.13 | 2.0.13 |
| nezhahq nezha(Go) | All versions | No fix listed |
| nezhahq nezha | = < 2.0.13 | No fix listed |
References
- https://github.com/nezhahq/nezha/security/advisories/GHSA-5c25-7vpj-9mqh vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com