Open-Source Security Intelligence

Know every vulnerability
before it knows you.

DevGuard continuously monitors your dependencies and alerts you when CVEs like this one affect your stack — with real-time threat intelligence built for developers.

Search

GHSA-vxq6-8cwm-wj99

MediumCVSS 5.5 / 10
Published Aug 18, 2025·Last modified Aug 18, 2025
Affected Components(0)

No affected components available

Description

Summary

A stored Cross-Site Scripting (XSS) vulnerability exists in LibreNMS (<= 25.6.0) in the Alert Template creation feature. This allows a user with the admin role to inject malicious JavaScript, which will be executed when the template is rendered, potentially compromising other admin accounts.


Details

In the LibreNMS web UI, when a user with the admin role visits /templates and clicks "Create new alert template", the "Template name" field fails to properly sanitize input. By inserting a payload like:

&lt;script>alert(document.cookie)&lt;/script> 

and filling the other fields with arbitrary content (e.g., test), once the template is saved, the script is executed. This confirms that user input is stored and later rendered without proper output encoding.

This vulnerability can be exploited for session hijacking, data theft, or other malicious actions targeting other admin users.


PoC

  1. Log in to LibreNMS using an account with the admin role.

  2. Navigate to: http://localhost:8000/templates.

  3. Click the "Create new alert template" button.

  4. Input the following into the Template name field:

    &lt;script>alert(document.cookie)&lt;/script>
    
  5. Fill the remaining fields (Template, Alert title, Recovery title) with arbitrary content such as test.

  6. Click "Create template".

  7. Upon saving, a JavaScript alert pops up, confirming the stored XSS is triggered.

    <img width="1574" height="848" alt="image" src="https://github.com/user-attachments/assets/bc482874-c47e-48e3-83b6-cb4a9dcf4a53" />

Impact

Type: Stored Cross-Site Scripting (XSS) Affected users: Only accounts with the admin role who access the Alert Templates page (http://localhost:8000/templates) are affected. Attackers need: Authenticated admin-level access.

Risk Scores
Base Score
5.5

The vulnerability can be exploited over the network without needing physical access. It is easy for an attacker to exploit this vulnerability. An attacker needs high-level or administrative privileges. No user interaction is needed for the attacker to exploit this vulnerability. The vulnerability can affect other systems as well, not just the initial system. There is a low impact on the confidentiality of the information. There is a low impact on the integrity of the data.

Threat Intelligence
5.1

Exploitation attempts have been detected. Elevated vigilance and prompt remediation are advised.

EPSS
11.89%

The exploit probability is low. The vulnerability is unlikely to be exploited in the next 30 days.

Exploit
Not available

We did not find any exploit available. Neither in GitHub repositories nor in the Exploit-Database.

Browse More

Scan your project

Continuously monitor your dependencies and get alerted when vulnerabilities like this one affect your stack.

Checkout DevGuard