CVE-2025-62412: LibreNMS alert-rules Cross-Site Scripting Vulnerability

Published Oct 16, 2025
·
Updated

Executive Summary

Product: LibreNMS Vendor: LibreNMS Vulnerability Type: Cross-Site Scripting (XSS) CVSS Score: 4.3 (AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L) Affected Version: 25.8.0 (latest at time of discovery) POC File: Download POC Ticket: ZDI-CAN-28105: LibreNMS Alert Rules Cross-Site Scripting Vulnerability

Vulnerability Details

Description Trend Micro's Zero Day Initiative has identified a Cross-Site Scripting vulnerability in LibreNMS. The vulnerability exists in the Alert Rules functionality where the alert rule name is not properly sanitized, allowing injection of HTML code.

Technical Details

Version Tested: 25.8.0 Installer File: 25.8.0.tar.gz Download Link: https://github.com/librenms/librenms/archive/refs/tags/25.8.0.tar.gz Platform: N/A

Attack Vector When browsing to Alerts > Alert Rules page, a LibreNMS admin can add and manage alert rules. The alert rule name field is vulnerable to XSS attacks through improper sanitization.

Root Cause Analysis

Vulnerable Request When creating or updating an alert rule, the following HTTP POST request is sent to /ajaxform.php:

POST /ajaxform.php HTTP/1.1 ...

token=9YjTntCuMIe2ujpumwqJQoENRXUhJzlDt33Xu7kx&deviceid=-1&devicename=&ruleid=&type=alert-rules&templateid=&builderjson=%7B%22condition%22%3A%22AND%22%2C%22rules%22%3A%5B%7B%22id%22%3A%22accesspoints.accesspointid%22%2C%22field%22%3A%22accesspoints.accesspointid%22%2C%22type%22%3A%22string%22%2C%22input%22%3A%22text%22%2C%22operator%22%3A%22equal%22%2C%22value%22%3A%2242%22%7D%5D%2C%22valid%22%3Atrue%7D&name=%3Ci%3Efoo%3C%2Fi%3E&builderrule0filter=accesspoints.accesspointid&builderrule0operator=equal&builderrule0value0=42&severity=warning&count=1&delay=1m&interval=5m&recovery=on&acknowledgement=on&proc=&notes=&advquery=

Code Flow

1. Request Processing: PHP script includes/html/forms/alert-rules.inc.php processes the request 2. Sanitization Attempt: Calls striptags() to sanitize the name parameter 3. Database Operation: Calls dbUpdate() or dbInsert() to save the rule

Bypass Technique The sanitization can be bypassed using XML character references:

html <script>alert(1)</script>

Execution Path

1. Page Load: Victim browses to Alerts > Alert Rules page 2. Script Execution: includes/html/print-alert/rules.php is called 3. Modal Inclusion: Includes includes/html/modal/alertrulelist.inc.php which returns HTML for modal window 4. Table Rendering: Modal contains HTML table with all rules and inline JavaScript calling bootgrid() function 5. XSS Trigger: The bootgrid() function (http://www.jquery-bootgrid.com/) rewrites table cells, decoding XML character references 6. Code Execution: Browser interprets the decoded payload as HTML tags and executes the injected script

Proof of Concept

Usage bash python3 poc.py client ipaddr -U <username> -P <password>

Optional Parameters - -E [kvp|multipart] - Specify HTTP request parameter encoding

Credit

Discovered by: Simon Humbert of Trend Research, Trend Micro

About Zero Day Initiative (ZDI)

Established by TippingPoint and acquired by Trend Micro, the Zero Day Initiative (ZDI) neither re-sells vulnerability details nor exploit code. Instead, upon notifying the affected product vendor, the ZDI provides its Trend Micro TippingPoint customers with zero day protection through its intrusion prevention technology. Explicit details regarding the specifics of the vulnerability are not exposed to any parties until an official vendor patch is publicly available.

References

- ZDI Website: http://www.zerodayinitiative.com - Disclosure Policy: http://www.zerodayinitiative.com/advisories/disclosurepolicy/

Other sources

LibreNMS is a community-based GPL-licensed network monitoring system. The alert rule name in the Alerts > Alert Rules page is not properly sanitized, and can be used to inject HTML code. This vulnerability is fixed in 25.10.0.

MITRE

Affected Software

3 affected componentsFixes available
librenms librenms<25.10.0
composer/librenms/librenms<=25.8.0
25.10.0
librenms librenms>=25.8.0<25.10.0

Event History

Oct 16, 2025
CVE Published
via MITRE·05:54 PM
Data Sourced
via MITRE·05:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:18 PM
Data Sourced
via GitHub·08:18 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62412?

CVE-2025-62412 is classified as a medium severity vulnerability due to the potential for HTML injection.

2

How do I fix CVE-2025-62412?

To fix CVE-2025-62412, upgrade your LibreNMS installation to version 25.10.0 or later.

3

What systems are affected by CVE-2025-62412?

CVE-2025-62412 affects all versions of LibreNMS prior to 25.10.0.

4

What type of vulnerability is CVE-2025-62412?

CVE-2025-62412 is an HTML injection vulnerability found in the alert rule name handling.

5

Is there a workaround for CVE-2025-62412?

There is no known workaround for CVE-2025-62412; updating to the latest version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203