Skip to content

Commit 79f4ee8

Browse files
1 parent 06532a0 commit 79f4ee8

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-j8cq-7f6p-256x",
4+
"modified": "2025-11-18T18:21:28Z",
5+
"published": "2025-11-18T18:21:28Z",
6+
"aliases": [
7+
"CVE-2025-65013"
8+
],
9+
"summary": "LibreNMS vulnerable to Reflected Cross-Site Scripting (XSS) in endpoint `/maps/nodeimage` parameter `Image Name` ",
10+
"details": "## Summary\n\nA 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.\n\n## Details\n\n- **Vulnerable Endpoint:** `GET /maps/nodeimage`\n \n- **Parameter:** `Image Name` (reflected in response)\n \n- **Vulnerability type:** Reflected Cross-Site Scripting (XSS) — input is reflected in server response and executed in victim browser.\n \n- **CWE:** CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting)\n \n\n## Description\n\nThe 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.\n\n## Proof of Concept (PoC)\n\nConstruct a request that includes the following payload in the `Image Name` parameter. The payload below should be used exactly as provided:\n\n```\n<script>alert('PoC-XXS51')</script>\n```\n\n## Steps to reproduce\n\n1. Authenticate as any user allowed to manage Node Images;\n \n2. Navigate the endpoint '/maps/nodeimage' and click on \"New Image\". Choose any valide image and, on `Image Name` parameter, insert the payload above .\n\n<img width=\"804\" height=\"408\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e6de8fc5-80a3-4cc3-81c5-2435dec25372\" />\n\n \n3. Observe the server response page; if vulnerable, the payload will be executed by the browser and an alert box with `PoC-XXS51` will appear.\n\n<img width=\"713\" height=\"589\" alt=\"image\" src=\"https://github.com/user-attachments/assets/202d602a-5f0b-4c7c-bb89-ffd1280c9e29\" />\n\n## Observed behavior\n\nThe 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.\n\n## Impact\n\nReflected XSS can be used to:\n\n- Execute arbitrary JavaScript in the context of any user who visits the crafted link.\n \n- Steal session cookies or authentication tokens (leading to session hijacking).\n \n- Perform actions on behalf of the victim (CSRF-like actions executed via script).\n \n- Phish users by manipulating the page UI, or exfiltrate sensitive information visible to the victim.\n \n- Pivot to further attacks depending on application context and user privileges.\n \n\n## References\n\n- CWE-79 — Cross-Site Scripting (XSS).\n \n- OWASP XSS Prevention Cheat Sheet.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Packagist",
21+
"name": "librenms/librenms"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "25.11.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/librenms/librenms/security/advisories/GHSA-j8cq-7f6p-256x"
42+
},
43+
{
44+
"type": "PACKAGE",
45+
"url": "https://github.com/librenms/librenms"
46+
}
47+
],
48+
"database_specific": {
49+
"cwe_ids": [
50+
"CWE-79"
51+
],
52+
"severity": "MODERATE",
53+
"github_reviewed": true,
54+
"github_reviewed_at": "2025-11-18T18:21:28Z",
55+
"nvd_published_at": null
56+
}
57+
}

0 commit comments

Comments
 (0)