Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nezhahq/nezha
  4. ›
  5. CVE-2026-49397

CVE-2026-49397: Nezha's private services (`EnableShowInService: false`) are enumerable via per-server endpoints, leaking name and timing data

June 10, 2026

The EnableShowInService flag on a Service is meant to gate that service’s visibility from the public dashboard. The main service-listing endpoint (GET /api/v1/service → showService) correctly filters services with EnableShowInService: false via ServiceSentinel.CopyStats() (service/singleton/servicesentinel.go:421-438). However, two adjacent reader endpoints retrieve service objects through code paths that do not honor the same flag:

  • GET /api/v1/server/:id/service (listServerServices) iterates ServiceSentinel.GetSortedList() (which returns every service regardless of visibility) and emits service ID, name, and timing data for any service monitoring the queried server.
  • GET /api/v1/service/:id/history (getServiceHistory) calls ServiceSentinel.Get(serviceID) directly and emits the service name (and aggregated per-server stats for servers the viewer can see).

Both endpoints are mounted on the optionalAuth group, so an unauthenticated visitor can enumerate hidden services as long as they can guess a public server ID (linear scan over a small numeric ID space) or a service ID (likewise). The service owner’s intent — “hide this from the public” via EnableShowInService: false — is silently bypassed.

References

  • github.com/advisories/GHSA-vrmh-5mmx-hjwx
  • github.com/nezhahq/nezha/security/advisories/GHSA-vrmh-5mmx-hjwx
  • nvd.nist.gov/vuln/detail/CVE-2026-49397

Code Behaviors & Features

Detect and mitigate CVE-2026-49397 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.0.14

Fixed versions

  • 2.0.14

Solution

Upgrade to version 2.0.14 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-285: Improper Authorization
  • CWE-863: Incorrect Authorization

Source file

go/github.com/nezhahq/nezha/CVE-2026-49397.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:41 +0000.