4.6medium
Stored-XSS-LibreNMS-Display-Name in librenms
- Severity
- 4.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pm8j-3v64-92cq
Description
librenms is a community-based GPL-licensed network monitoring system. Affected versions are subject to a stored XSS on the parameters (Replace $DEVICE_ID with your specific $DEVICE_ID value):`/device/$DEVICE_ID/edit` -> param: display. Librenms versions up to 24.10.1 allow remote attackers to inject malicious scripts. When a user views or interacts with the page displaying the data, the malicious script executes immediately, leading to potential unauthorized actions or data exposure. This issue has been addressed in release version 24.11.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| librenms librenms | < 24.11.0, before 24.11.0 | CVE List, NVD |
| librenms/librenms (Packagist) | from 24.9.0 before 24.11.0 | GitHub Advisory Database |
All scores
| GitHub_M | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
librenms is a community-based GPL-licensed network monitoring system. Affected versions are subject to a stored XSS on the parameters (Replace $DEVICE_ID with your specific $DEVICE_ID value):`/device/$DEVICE_ID/edit` -> param: display. Librenms versions up to 24.10.1 allow remote attackers to inject malicious scripts. When a user views or interacts with the page displaying the data, the malicious script executes immediately, leading to potential unauthorized actions or data exposure. This issue has been addressed in release version 24.11.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
GitHub Advisory Database
Description:
XSS on the parameters (Replace $DEVICE_ID with your specific $DEVICE_ID value):/device/$DEVICE_ID/edit -> param: display
of Librenms versions 24.9.0, 24.10.0, and 24.10.1 (https://github.com/librenms/librenms) allows remote attackers to inject malicious scripts. When a user views or interacts with the page displaying the data, the malicious script executes immediately, leading to potential unauthorized actions or data exposure.
Proof of Concept:
-
Add a new device through the LibreNMS interface.
-
Edit the newly created device by going to the "Device Settings" section.
-
In the "Display Name" field, enter the following payload:
"><script>alert(1)</script>. Screenshot from 2024-11-06 09-41-37 -
Save the changes.
-
The XSS payload triggers when accessing the "/apps" path (if an application was previously added). Screenshot from 2024-11-06 09-42-05
Additional PoC:
-
In the "Display Name" field, enter the following payload:
"><img src onerror="alert(1)">. image -
The XSS vulnerability is triggered when accessing the "/ports" path, and the payload executes when hovering over the modified value in the "Port" field. image
-
on
/device/$DEVICE_ID/ports/arppath: image -
on
/device/$DEVICE_ID/logspath: image -
on
/search/search=arp/path: image
Impact:
Execution of Malicious Code
NVD (es)
librenms es un sistema de monitorización de redes con licencia GPL basado en la comunidad. Las versiones afectadas están sujetas a XSS almacenado en los parámetros (Reemplace $DEVICE_ID con su valor $DEVICE_ID específico):`/device/$DEVICE_ID/edit` -> param: display. Las versiones de Librenms hasta la 24.10.1 permiten a atacantes remotos inyectar scripts maliciosos. Cuando un usuario ve o interactúa con la página que muestra los datos, el script malicioso se ejecuta inmediatamente, lo que lleva a posibles acciones no autorizadas o exposición de datos. Este problema se ha solucionado en la versión de lanzamiento 24.11.0. Se recomienda a los usuarios que actualicen. No existen workarounds conocidos para esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-23198 changed 2025-02-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pm8j-3v64-92cq changed 2025-04-28 | CC-BY-4.0 |
| NVD | CVE-2025-23198 changed 2026-06-17 | Public domain |