Executive brief
Nezha Monitoring is a tool used to manage and monitor servers and websites. A security flaw allows an attacker to trick a logged-in administrator into unintentionally running pre-configured maintenance commands on their monitored servers. While the attacker cannot create new commands, they can force the execution of existing ones, which could lead to unauthorized system changes or service disruptions.
Technical details
A Cross-Site Request Forgery (CSRF) vulnerability exists in the Nezha Monitoring dashboard due to the use of a state-changing GET endpoint for manual cron execution. The endpoint `/api/v1/cron/:id/manual` is authenticated via a JWT stored in a cookie with `SameSite=Lax` configuration. Because browsers include Lax cookies on top-level cross-site GET navigations and the endpoint lacks CSRF tokens or Origin/Fetch Metadata validation, an attacker can induce a logged-in user to trigger existing cron tasks. An exploit results in the dispatch of stored commands to connected agents. The vulnerability is patched in version 2.0.14.
Affected products
- NezhaHQ Nezha Monitoring >= 1.0.0, < 2.0.14
Timeline
- 2026-05-26: advisory: GitHub Security Advisory published
- 2026-06-12: disclosed: CVE published to NVD
- 2026-06-12: patched: Fix released in version 2.0.14