Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-23200 Overview
LibreNMS, a community-based GPL-licensed network monitoring system, contains a stored cross-site scripting (XSS) vulnerability in the ajax_form.php endpoint. The flaw resides in the state parameter and affects LibreNMS versions up to and including 24.10.1. Authenticated remote attackers can inject malicious JavaScript that executes when other users view or interact with the affected page. Successful exploitation can lead to unauthorized actions performed in the context of the victim's session or exposure of sensitive monitoring data. The issue is tracked under [CWE-79] and is resolved in release 24.11.0.
Critical Impact
Authenticated attackers can store malicious scripts that execute in administrator browsers, enabling session abuse, unauthorized configuration changes, and exposure of network monitoring data.
Affected Products
- LibreNMS versions up to and including 24.10.1
- Fixed in LibreNMS 24.11.0
- Component: ajax_form.php endpoint (state parameter)
Discovery Timeline
- 2025-01-16 - CVE-2025-23200 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-23200
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw in the LibreNMS web interface. The ajax_form.php endpoint accepts a state parameter and persists its value without adequate output encoding or input sanitization. When a subsequent user loads the page that renders this stored value, the browser interprets the attacker-controlled content as executable JavaScript.
Because LibreNMS is a privileged network monitoring platform, injected scripts run in the context of administrative users who routinely view device state information. This allows an attacker with authenticated access to pivot into higher-privileged sessions.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The state parameter sent to ajax_form.php is stored and later reflected into HTML output without context-appropriate escaping. Any string containing HTML or script syntax is rendered as markup rather than inert text.
Attack Vector
Exploitation requires network access to the LibreNMS web interface, low-privilege authentication, and user interaction from a victim who views the affected view. An attacker submits a crafted payload to ajax_form.php through the state parameter. The payload persists in LibreNMS data. When another authenticated user, typically an administrator reviewing monitored device state, loads the page, the stored script executes in their browser. The scope changes because the injected script runs under the victim's session, enabling actions beyond the attacker's own privilege level.
No verified public exploit code is available. Refer to the LibreNMS GitHub Security Advisory GHSA-c66p-64fj-jmc2 for vendor details.
Detection Methods for CVE-2025-23200
Indicators of Compromise
- HTTP POST or GET requests to ajax_form.php containing HTML tags, <script>, javascript:, or event handler attributes such as onerror= and onload= in the state parameter
- Unexpected JavaScript errors or outbound HTTP requests originating from administrator browser sessions that have LibreNMS loaded
- New or modified LibreNMS records whose state field contains encoded or raw HTML markup
- Unexplained administrative changes performed shortly after a user viewed a device state page
Detection Strategies
- Inspect web server and application logs for requests to ajax_form.php with suspicious characters in the state parameter, including angle brackets, encoded script tags, or URI schemes such as data: and javascript:
- Deploy a Web Application Firewall (WAF) rule that flags XSS payload signatures targeting the ajax_form.php endpoint
- Hunt stored LibreNMS database values for HTML and JavaScript syntax in state-related fields
Monitoring Recommendations
- Enable verbose HTTP request logging on the LibreNMS web server and forward logs to a central SIEM for retention and query
- Alert on administrative actions in LibreNMS that occur immediately after a user loads a device state page containing untrusted input
- Monitor browser Content Security Policy (CSP) violation reports if CSP headers are configured on the LibreNMS instance
How to Mitigate CVE-2025-23200
Immediate Actions Required
- Upgrade LibreNMS to version 24.11.0 or later, which contains the vendor fix
- Audit user accounts and remove or restrict any low-privilege accounts that are no longer needed, since authentication is required to inject the payload
- Review LibreNMS audit logs and stored device state data for signs of prior injection attempts
- Rotate session tokens and administrative credentials if evidence of exploitation is found
Patch Information
The LibreNMS maintainers addressed this issue in release 24.11.0. See the LibreNMS Security Advisory GHSA-c66p-64fj-jmc2 for the official fix details. Upgrading is the only supported remediation.
Workarounds
- No vendor-supplied workarounds exist for this vulnerability; upgrading to 24.11.0 is required
- As a defense-in-depth measure, restrict access to the LibreNMS web interface to trusted networks via firewall or VPN until the patch is applied
- Deploy a Content Security Policy and WAF rules in front of the LibreNMS web interface to reduce the impact of script injection attempts
# Upgrade LibreNMS to the fixed release (reference commands; verify against your deployment method)
cd /opt/librenms
sudo -u librenms git fetch --tags
sudo -u librenms git checkout 24.11.0
sudo -u librenms ./daily.sh
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

