NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-55296: LibreNMS allows stored XSS in Alert Template name field

mediumCVSS 3.1 5.5GHSA-vxq6-8cwm-wj99

Summary A stored Cross-Site Scripting (XSS) vulnerability exists in LibreNMS ( --- 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.

Published Aug 18, 2025

Affected packages

librenms/librenms

Ecosystem
Composer (PHP)
Affected
< 25.8.0
Fixed in
25.8.0
Check
composer show librenms/librenms

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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>
  1. Fill the remaining fields (Template, Alert title, Recovery title) with arbitrary content such as test.
  2. Click "Create template".
  3. Upon saving, a JavaScript alert pops up, confirming the stored XSS is triggered.

---

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.

Credited to aschoiloa1890.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries