LibreNMS
cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*
- < 25.12.0
A stored cross-site scripting vulnerability has been identified in the Alert Rule API of LibreNMS, prior to version 25.12.0. The issue arises because the alert rule name is not properly sanitized when rules are created or updated via the API, allowing for the injection of HTML code. This vulnerability has been patched in version 25.12.0.
Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the alert rules.
To reproduce this vulnerability, create or update an alert rule through the LibreNMS API. Include an unescaped HTML payload, such as a script tag, in the rule name. Once the rule is saved, navigate to the Alerts > Alert Rule page. The injected script will be executed when the page is loaded, demonstrating the cross-site scripting vulnerability.
Users can update to LibreNMS version 25.12.0 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.