CVE-2025-65013: LibreNMS vulnerable to Reflected Cross-Site Scripting (XSS) in endpoint `/maps/nodeimage` parameter `Image Name`

Published Nov 18, 2025
·
Updated

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

1. Authenticate as any user allowed to manage Node Images; 2. Navigate the endpoint '/maps/nodeimage' and click on "New Image". Choose any valide image and, on Image Name parameter, insert the payload above .

<img width="804" height="408" alt="image" src="https://github.com/user-attachments/assets/e6de8fc5-80a3-4cc3-81c5-2435dec25372" />

3. Observe the server response page; if vulnerable, the payload will be executed by the browser and an alert box with PoC-XXS51 will appear.

<img width="713" height="589" alt="image" src="https://github.com/user-attachments/assets/202d602a-5f0b-4c7c-bb89-ffd1280c9e29" />

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.

Other sources

LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring tool. Prior to version 25.11.0, 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. This issue has been patched in version 25.11.0.

MITRE

Affected Software

2 affected componentsFixes available
composer/librenms/librenms<25.11.0
25.11.0
librenms librenms<25.11.0

Event History

Nov 18, 2025
Advisory Published
via GitHub·06:21 PM
Data Sourced
via GitHub·06:21 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·11:01 PM
Data Sourced
via MITRE·11:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-65013?

CVE-2025-65013 has been classified as a medium severity vulnerability due to its ability to allow reflected XSS attacks.

2

How do I fix CVE-2025-65013?

To fix CVE-2025-65013, upgrade to LibreNMS version 25.11.0 or later where the vulnerability is addressed.

3

What kind of attack can be performed using CVE-2025-65013?

An attacker can perform a Reflected Cross-Site Scripting (XSS) attack by crafting a malicious URL that exploits the vulnerability in the `Image Name` parameter.

4

What is the affected software version for CVE-2025-65013?

CVE-2025-65013 affects LibreNMS versions prior to 25.11.0.

5

Where is CVE-2025-65013 located within the application?

CVE-2025-65013 is located at the `/maps/nodeimage` endpoint of the LibreNMS application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203