Skip to main content

CVE-2025-55296 — LibreNMS allows stored XSS in librenms/librenms

MEDIUM

LibreNMS allows stored XSS in Alert Template name field

Published August 18, 2025Updated August 18, 2025Source: OSV

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.

Check my composer.lock

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:

&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.


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
Update librenms/librenms to 25.8.0 or later
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).

PackageFixed 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-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N

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

CVSS Score
5.5

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.39%
EPSS percentile: 24.8

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

GHSA-vxq6-8cwm-wj99

Related CVEs

  • CVE-2024-47524
    HIGH

    LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name

  • CVE-2024-49754
    HIGH

    LibreNMS has a stored XSS ('Cross-site Scripting') in librenms/includes/html/pages/api-access.inc.php

  • CVE-2025-54138
    HIGH

    LibreNMS has Authenticated Remote File Inclusion in ajax_form.php that Allows RCE

  • CVE-2024-51497
    HIGH

    LibreNMS has a Stored XSS ('Cross-site Scripting') in librenms/includes/html/print-customoid.php

  • CVE-2025-62411
    MEDIUM

    LibreNMS has a Stored XSS vulnerability in its Alert Transport name field

  • CVE-2025-23201
    MEDIUM

    Librenms has a reflected XSS on error alert

  • CVE-2026-26987
    MEDIUM

    LibreNMS affected by reflected xss via email field

  • CVE-2024-47526
    LOW

    LibreNMS has Stored Cross-site Scripting vulnerability in "Alert Templates" feature

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock