CVE-2025-65013: LibreNMS vulnerable to Reflected Cross-Site Scripting (XSS) in endpoint `/maps/nodeimage` parameter `Image Name`
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.
Published Nov 18, 2025 · Updated Nov 19, 2025
Affected packages
librenms/librenms
- Ecosystem
- Composer (PHP)
- Affected
- < 25.11.0
- Fixed in
- 25.11.0
- Check
composer show librenms/librenms
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to marcelomulder.
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) entriesGHSA-7w8c-qgxg-m7jx
LibreNMS — Stored XSS via SNMP/Syslog Data in Legacy Templates
high7.1Aug 26, 2026CVE-2026-55182
LibreNMS Vulnerable to Remote Code Execution by Signal Alert Transportation module
high8.6Aug 18, 2026GHSA-7cj5-v4pp-v632
LibreNMS: Stored XSS via graph_descr admin config settings echoed without escaping to all authenticated users
medium4.8Aug 18, 2026GHSA-7gww-x7fh-jf9j
LibreNMS: SSRF-driven stored XSS via Oxidized API response fields in device showconfig page
high8.1Aug 18, 2026GHSA-jf24-8g2h-2wg7
LibreNMS Vulnerable to Remote Code Execution via AboutController
medium6.4Aug 18, 2026CVE-2026-45694
LibreNMS: Reflected XSS via Proxmox instance/vmid GET parameters injected into document.title JavaScript assignment
medium5.4Aug 12, 2026
