GitHub Advisoryadvisory · Packagist

GHSA-vxq6-8cwm-wj99 LibreNMS allows stored XSS in Alert Template name field

MEDIUM Published 2025-08-18 Modified 2025-08-18 Official page ↗
Aliases
CVE-2025-55296
Ecosystem
Packagist
Packages
librenms/librenms
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2025-08-18

Affected packages

• Packagist librenms/librenms: < 25.8.0 → fixed in 25.8.0

Description

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

Related

Alias · CVE (1)

  • CVE-2025-55296 librenms is a community-based GPL-licensed network monitoring system. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References