ADVISORIES

Go Vulnerability Database

GO-2026-5119

Nezha's authenticated agents can forge service-monitor results for other users' services in github.com/nezhahq/nezha

Details

Nezha accepts service-monitor TaskResult messages from an authenticated agent based only on whether the reported service ID exists. The dashboard authenticates the agent and derives the reporter server ID from the gRPC stream, but the service-monitor result worker does not verify that the reporter server was selected for that service, belongs to the service owner, or was actually assigned that monitoring task.

A low-privilege user with a valid agent secret and one registered agent can submit forged monitoring results for another user's service ID. This allows cross-tenant corruption of service-monitor history and state, and can influence victim-owned service notifications.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/naiba/nezha
From 0.20.0, no fix listed
Gogithub.com/nezhahq/nezha
From 1.0.0 before 1.14.15-0.20260521020202-02129f16fb15 (fixed in 1.14.15-0.20260521020202-02129f16fb15)

References