CVE-2025-55296 — LibreNMS allows stored XSS in librenms/librenms
LibreNMS allows stored XSS in Alert Template name field
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.39%). Schedule for your next planned update.
Does your project use an affected librenms/librenms version?
Paste your composer.lock to check it for CVE-2025-55296 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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:
<script>alert(document.cookie)</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
-
Log in to LibreNMS using an account with the admin role.
-
Navigate to:
http://localhost:8000/templates. -
Click the "Create new alert template" button.
-
Input the following into the Template name field:
<script>alert(document.cookie)</script> -
Fill the remaining fields (
Template,Alert title,Recovery title) with arbitrary content such astest. -
Click "Create template".
-
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.
Advisory Timeline
- First published August 18, 2025 (465 days ago).
- Last revised August 18, 2025 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "librenms/librenms:^25.8.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| librenms/librenms Packagist · Affected: 1.19, 1.20, 1.20.1, 1.21 (+137 more) | 25.8.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2025-55296?
- LibreNMS allows stored XSS in Alert Template name field. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.5/10).
- How do I check if my project is affected by CVE-2025-55296?
- CVE-2025-55296 affects librenms/librenms. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-55296 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 24.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2024-47524HIGH
LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name
- CVE-2024-49754HIGH
LibreNMS has a stored XSS ('Cross-site Scripting') in librenms/includes/html/pages/api-access.inc.php
- CVE-2025-54138HIGH
LibreNMS has Authenticated Remote File Inclusion in ajax_form.php that Allows RCE
- CVE-2024-51497HIGH
LibreNMS has a Stored XSS ('Cross-site Scripting') in librenms/includes/html/print-customoid.php
- CVE-2025-62411MEDIUM
LibreNMS has a Stored XSS vulnerability in its Alert Transport name field
- CVE-2025-23201MEDIUM
Librenms has a reflected XSS on error alert
- CVE-2026-26987MEDIUM
LibreNMS affected by reflected xss via email field
- CVE-2024-47526LOW
LibreNMS has Stored Cross-site Scripting vulnerability in "Alert Templates" feature