Skip to main content

CVE-2025-65013 — Vulnerability in librenms/librenms — CVE Details

MEDIUM

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

Published November 18, 2025Updated November 20, 2025Source: OSV

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.

Check my composer.lock

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

  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 .

  1. Observe the server response page; if vulnerable, the payload will be executed by the browser and an alert box with PoC-XXS51 will 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
Update librenms/librenms to 25.11.0 or later
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).

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

CVSS Score Breakdown

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

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

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

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

CVSS Score
6.2

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.43%
EPSS percentile: 29.6

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

GHSA-j8cq-7f6p-256x

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock