CVE-2025-65013 — Vulnerability in librenms/librenms — CVE Details
LibreNMS vulnerable to Reflected Cross-Site Scripting (XSS) in endpoint `/maps/nodeimage` parameter `Image Name`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.43%). 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-65013 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 Reflected Cross-Site Scripting (XSS) vulnerability was identified in the LibreNMS application at the /maps/nodeimage endpoint. The Image Name parameter is reflected in the HTTP response without proper output encoding or sanitization, allowing an attacker to craft a URL that, when visited by a victim, causes arbitrary JavaScript execution in the victim’s browser.
Details
-
Vulnerable Endpoint:
GET /maps/nodeimage -
Parameter:
Image Name(reflected in response) -
Vulnerability type: Reflected Cross-Site Scripting (XSS) — input is reflected in server response and executed in victim browser.
-
CWE: CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting)
Description
The application takes the value of the Image Name parameter from a request to /maps/nodeimage and includes it in the generated page or response without proper contextual encoding. Because the input is reflected immediately back to the client and parsed as HTML/JavaScript by the browser, an attacker can craft a URL containing a malicious script. If a victim (for example, an authenticated user or administrator) is tricked into visiting that URL, the injected script will execute in the victim’s browser context.
Proof of Concept (PoC)
Construct a request that includes the following payload in the Image Name parameter. The payload below should be used exactly as provided:
<script>alert('PoC-XXS51')</script>
Steps to reproduce
-
Authenticate as any user allowed to manage Node Images;
-
Navigate the endpoint '/maps/nodeimage' and click on "New Image". Choose any valide image and, on
Image Nameparameter, insert the payload above .
- Observe the server response page; if vulnerable, the payload will be executed by the browser and an alert box with
PoC-XXS51will appear.
Observed behavior
The supplied payload is reflected in the HTTP response and interpreted by the browser, resulting in immediate execution (demonstrated by an alert popup). This confirms the application does not perform appropriate output encoding for the Image Name parameter.
Impact
Reflected XSS can be used to:
-
Execute arbitrary JavaScript in the context of any user who visits the crafted link.
-
Steal session cookies or authentication tokens (leading to session hijacking).
-
Perform actions on behalf of the victim (CSRF-like actions executed via script).
-
Phish users by manipulating the page UI, or exfiltrate sensitive information visible to the victim.
-
Pivot to further attacks depending on application context and user privileges.
References
-
CWE-79 — Cross-Site Scripting (XSS).
-
OWASP XSS Prevention Cheat Sheet.
Advisory Timeline
- First published November 18, 2025 (373 days ago).
- Last revised November 20, 2025 — 2 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "librenms/librenms:^25.11.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 (+141 more) | 25.11.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) 6.2 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N
References
Frequently Asked Questions
- What is CVE-2025-65013?
- LibreNMS vulnerable to Reflected Cross-Site Scripting (XSS) in endpoint `/maps/nodeimage` parameter `Image Name`. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.2/10).
- How do I check if my project is affected by CVE-2025-65013?
- CVE-2025-65013 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-65013 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 29.6% 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-51092CRITICAL
LibreNMS has an Authenticated OS Command Injection
- CVE-2022-4070CRITICAL
Insufficient Session Expiration in librenms/librenms
- CVE-2026-84189HIGH
LibreNMS: SSRF-driven stored XSS via Oxidized API response fields in device showconfig page
- CVE-2026-84192HIGH
LibreNMS — Stored XSS via SNMP/Syslog Data in Legacy Templates
- CVE-2024-47523MEDIUM
LibreNMS has Stored Cross-site Scripting vulnerability in "Alert Transports" feature
- CVE-2025-62365MEDIUM
LibreNMS is vulnerable to Reflected-XSS in `report_this` function
- CVE-2025-55296MEDIUM
LibreNMS allows stored XSS in Alert Template name field
- CVE-2024-47528LOW
LibreNMS vulnerable to Stored Cross-site Scripting via File Upload