CVE-2026-49396: Cross-Site Request Forgery in Nezha Monitoring – Exploitation, Patch, and Detection
Nezha Monitoring, a self-hosted server and website monitoring tool, contains a cross-site request forgery (CSRF) vulnerability that allows attackers to trick users into executing malicious cron commands on connected agents. An attacker can craft a specially designed webpage or email that, when visited by an authenticated Nezha administrator, silently triggers unwanted scheduled tasks on monitored servers. This happens because the application doesn't properly validate requests coming from external sources. The vulnerability affects all versions from 1.0.0 through 2.0.13, and has been resolved in version 2.0.14 and later.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- Weaknesses (CWE)
- CWE-352
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-12 / 2026-06-17
NVD description (verbatim)
Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. From version 1.0.0 to before version 2.0.14, cross-site GET request can trigger stored cron commands on a victim's agents. This issue has been patched in version 2.0.14.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-49396 is a cross-site request forgery (CSRF) vulnerability (CWE-352) in Nezha Monitoring that permits unauthenticated attackers to execute arbitrary cron commands on agent systems without explicit user action beyond visiting a malicious webpage or link. The vulnerability stems from inadequate CSRF token validation or missing same-origin policy enforcement on endpoints that create or modify scheduled tasks. An attacker can exploit this by hosting a webpage with crafted HTTP GET requests that, when accessed by an authenticated administrator, are automatically processed by the Nezha instance. The impact is amplified because cron commands execute with the privileges of the Nezha agent process, potentially enabling remote code execution or lateral movement. The CVSS 3.1 score of 7.1 (HIGH) reflects high integrity impact and low availability risk, with network accessibility and low attack complexity.
Business impact
Organizations using Nezha Monitoring to manage critical infrastructure face operational disruption and security compromise. An attacker could establish persistent backdoors by injecting malicious cron tasks into monitored servers, or manipulate monitoring data to hide intrusions. If Nezha manages production systems, this vulnerability could enable attackers to alter configurations, disable services, or exfiltrate data. The attack requires only that an administrator visit a phishing link, making it a practical threat in environments with standard security hygiene. Unpatched deployments remain vulnerable to supply-chain targeting, where attackers compromise shared Nezha instances to gain access to multiple customers' monitored servers.
Affected systems
Nezha Monitoring versions 1.0.0 through 2.0.13 are vulnerable. Self-hosted Nezha instances are the primary target, particularly those with internet-facing web interfaces or those accessed by administrators from untrusted networks. The vulnerability does not require CVSS privilege escalation, so any user with admin credentials—or any authenticated session—is a potential attack vector. Verify your installed version in the Nezha web UI settings or check your deployment logs. Organizations running upstream or patched versions should confirm they are running 2.0.14 or later.
Exploitability
This vulnerability is relatively straightforward to exploit and requires minimal technical skill. An attacker needs only to host a webpage containing a malicious form or image tag that makes HTTP GET requests to the target Nezha instance. The attack vector is network-based and doesn't require privilege elevation, though it does depend on user interaction (UI:R) — specifically, an authenticated administrator must visit the attacker's crafted link or webpage. No authentication by the attacker is required. However, the attack is not yet listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, suggesting active exploitation in the wild has not been formally tracked at the time of publication, though this does not preclude real-world attacks.
Remediation
The immediate remediation is to upgrade Nezha Monitoring to version 2.0.14 or later. Before patching, mitigate by restricting administrative access to Nezha's web interface using network segmentation, implementing a Web Application Firewall (WAF) rule that validates Referer headers for sensitive endpoints, and educating administrators to avoid clicking untrusted links while logged into Nezha. Additionally, review audit logs for unexpected cron task modifications, particularly those created during periods of suspicious activity or following reports of phishing attempts. Consider implementing browser-based security extensions that block cross-origin requests to internal applications.
Patch guidance
Upgrade to Nezha Monitoring version 2.0.14 or later. The vendor has confirmed the fix in this version includes proper CSRF token validation and same-origin policy enforcement on cron command endpoints. Before upgrading, back up your current Nezha configuration and database to ensure you can roll back if needed. Test the upgrade in a non-production environment first, especially if you have customized the monitoring workflow. The upgrade process typically preserves your monitored agents and historical data; refer to the official Nezha release notes for any breaking changes or migration steps specific to your deployment.
Detection guidance
Monitor Nezha audit logs for unexpected cron task creation or modification, particularly from IP addresses that do not correspond to known administrators or your corporate network. Look for HTTP GET requests to sensitive Nezha endpoints (such as those managing cron tasks) that lack a valid CSRF token or originate from unusual referrer headers. Network-level detection can be enhanced by inspecting HTTP requests for missing or mismatched Referer headers when accessing administrative Nezha endpoints. If Nezha logs HTTP requests, correlate timestamps of cron modifications with phishing reports or suspicious user activity in your organization. Endpoint detection and response (EDR) tools can identify unexpected process spawning or system modifications on monitored servers that coincide with cron execution times.
Why prioritize this
This vulnerability merits prompt patching due to its HIGH severity, straightforward exploitability, and potential to compromise multiple monitored systems from a single attack. The attack does not require the attacker to authenticate or bypass network boundaries, making it accessible to a broad threat actor population. Because Nezha instances typically monitor production infrastructure, successful exploitation could lead to widespread operational impact, data loss, or regulatory compliance violations. The reliance on user interaction (phishing) is a known attack vector with high success rates in real-world campaigns, particularly if administrators work in security-unaware organizations or lack phishing training.
Risk score, explained
The CVSS 3.1 score of 7.1 (HIGH) reflects a network-accessible vulnerability with low attack complexity (AC:L) and no privilege requirement (PR:N). The score emphasizes high integrity impact (I:H), as cron commands can modify system behavior and configuration, with lesser but significant availability impact (A:L). The requirement for user interaction (UI:R) — visiting a phishing link — prevents a CRITICAL rating. The score does not account for the contextual risk that compromised cron tasks on monitored servers may facilitate subsequent lateral movement or data exfiltration, which could elevate business risk above the base score.
Frequently asked questions
Can this vulnerability be exploited without an administrator visiting a malicious link?
No. The vulnerability requires user interaction; specifically, an authenticated Nezha administrator must click a link or visit a webpage controlled by the attacker. This makes phishing, email compromise, or social engineering necessary precursors to exploitation. However, with broad access to email or compromised advertising networks, attackers can reach many administrators simultaneously.
What happens if an attacker injects a malicious cron command? Can it execute arbitrary code?
Yes. Cron commands in Nezha are executed with the privileges of the Nezha agent process on the monitored server. If the agent runs as root or a privileged user, the injected command will execute with those privileges, enabling arbitrary code execution, data theft, or lateral movement to other systems on the network.
Do I need to restart Nezha after upgrading to 2.0.14?
Verify against the vendor advisory and official Nezha release notes. Typically, a service restart is required to activate the patched code and ensure CSRF protections are enforced. Always back up your configuration before upgrading and test in a staging environment.
Are older versions of Nezha still receiving security updates?
No. Only version 2.0.14 and later contain the fix for CVE-2026-49396. If you are running version 1.x or 2.0.13, you must upgrade to 2.0.14 or later. End-of-life timelines for Nezha should be verified with the upstream project.
This vulnerability analysis is provided for informational purposes to assist security teams in risk assessment and remediation planning. The analysis is based on publicly disclosed vulnerability data current as of the publication date. Security teams should verify all patch versions, vendor advisories, and technical details against the official Nezha project repository and security announcements before making remediation decisions. No exploit code or weaponized proof-of-concept is provided. This analysis does not constitute legal advice, and organizations are responsible for assessing their own exposure and implementing appropriate controls. SEC.co assumes no liability for damages resulting from the use or misuse of this information. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-11265HIGHGoogle Chrome Autofill Cross-Origin Data Leak (CVSS 7.5)
- CVE-2026-35266HIGHOracle REST Data Services Authentication & Data Integrity Vulnerability
- CVE-2026-43985HIGHCritical CSRF Vulnerability in Tautulli Admin Endpoint Allows Credential Hijacking
- CVE-2026-48612HIGHOAuth State Verification Flaw Enables Account Takeover
- CVE-2026-6075HIGHMedia Library Assistant WordPress CSRF Vulnerability – Bulk Action Exploitation
- CVE-2026-6455HIGHWP Contact Form 7 DB Handler CSRF & SQL Injection Leads to Arbitrary File Deletion
- CVE-2016-20067MEDIUMWordPress CP Polls CSRF Vulnerability
- CVE-2016-20074MEDIUMWordPress Lazy Content Slider CSRF Vulnerability – Patch & Detection Guide