{"id":"CVE-2024-50355","aliases":["CVE-2024-50355","GHSA-4m5r-w2rq-q54q"],"related":[],"kind":"vulnerability","state":"published","title":"LibreNMS has a Persistent XSS from Insecure Input Sanitization Affects Multiple Endpoints","summary":"LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. User with Admin role can edit the Display Name of a device, the application did not properly sanitize the user input in the device Display Name, if java script code is inside the name of the device Display Name, its can be trigger from different sources. This vulnerability is fixed in 24.10.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. User with Admin role can edit the Display Name of a device, the application did not properly sanitize the user input in the device Display Name, if java script code is inside the name of the device Display Name, its can be trigger from different sources. This vulnerability is fixed in 24.10.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.\n\n### Details\n\nUser with Admin role can edit the Display Name of a device, the application did not properly sanitize the user input in the device Display Name, if java script code is inside the name of the device Display Name, its can be trigger from different sources.\n\n### PoC\n\n1. Use an Admin role user to change the Display Name of a device into the payload `<img src=\"x\" onerror=\"alert(document.cookie)\">`\n\n![image](https://github.com/user-attachments/assets/a0cce15d-fa25-46cf-a16d-648b501724a4)\n\n2.1. Go to manage user and choose Manage Access\n\n![image](https://github.com/user-attachments/assets/079bd7a7-c153-4630-a59e-416bbbaf267b)\n\n2.2. A pop-up will show\n\n![image](https://github.com/user-attachments/assets/2fe15976-c25d-4ba5-a9c1-08cfaa5c1c5b)\n\n3.1. Create a new Alert Rule where it will check if the device is up or down by using ICMP and then add the rule to the device.\n\n![image](https://github.com/user-attachments/assets/135093ba-d28c-4fe4-871d-950a2d521b01)\n\n3.2. Once the device is down, there will be an alert in the Alerts Notifications\n\n![image](https://github.com/user-attachments/assets/f32461be-aee2-43e7-ba50-977ed27754b4)\n\n3.3. Hover over the Hostname will see a pop-up.\n\n![image](https://github.com/user-attachments/assets/314eed99-1372-40e8-818f-4494679e476e)\n\n4.1. The same can be trigger in the Alert History once hover over the Device field.\n\n![image](https://github.com/user-attachments/assets/33dd2045-2c21-4305-a7a6-8c09101baf81)\n\n5.1. The same can be trigger once hover over the Hostname field from the Event Log of the device.\n\n![image](https://github.com/user-attachments/assets/a8a80dc7-4678-4334-a03a-e38d61e55e1c)\n\n6.1. The same can be trigger in the Outages function in the Logs of the device.\n\n![image](https://github.com/user-attachments/assets/b25d1c20-de6d-4c8d-bfab-59691b3faf1e)\n\n7.1. In the Active Alerts of the device.\n\n![image](https://github.com/user-attachments/assets/73571f83-56e2-4e6f-9af4-621df2a0ccdd)\n\n8.2. In the Alert History of the device.\n\n![image](https://github.com/user-attachments/assets/1fa4a86b-4469-4e09-a4d8-174529138199)\n\n9.1. They can also be trigger in the dashboard.\n\n![image](https://github.com/user-attachments/assets/0d3f3926-b41d-48d2-9212-cbd5692f6a9e)\n\n![image](https://github.com/user-attachments/assets/6f36fc02-eae5-4a46-b6ba-f99a8d1db8a8)\n\n10.1. Also if change the payload into `<img src=\"x\" onerror=\"alert(document['cookie'])\">`, it can also be trigger in the Availability Map.\n\n![image](https://github.com/user-attachments/assets/9ed7ebb1-4906-43f0-aa96-313fe722a533)\n\n![image](https://github.com/user-attachments/assets/d7c57840-4431-4ccb-b688-e813c83ac20c)\n\n### Impact\n\nIt could allow authenticated users to execute arbitrary JavaScript code in the context of other users' sessions.\nImpacted users could have their accounts compromised, enabling the attacker to perform unauthorized actions on their behalf.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LibreNMS es un sistema de monitoreo de red de código abierto basado en PHP/MySQL/SNMP. El usuario con rol de administrador puede editar el nombre para mostrar de un dispositivo, la aplicación no saneó correctamente la entrada del usuario en el nombre para mostrar del dispositivo, si el código de script de Java está dentro del nombre para mostrar del dispositivo, puede ser activado desde diferentes fuentes. Esta vulnerabilidad se corrigió en 24.10.0.","source":"nvd"}],"published":"2024-11-15T15:41:38.000Z","modified":"2026-06-17T08:04:17.730Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 24.10.0","status":"affected"}],"vendor":"librenms","product":"librenms","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"24.10.0","status":"affected"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"24.10.0"}],"ecosystem":"Packagist","package":"librenms/librenms","purl":"pkg:composer/librenms/librenms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"24.10.0"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-4m5r-w2rq-q54q","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/commit/bb4731419b592867bf974dde525e536606a52976","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50355","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/librenms/librenms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-15T16:05:39.086Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50355","url":"https://www.cve.org/CVERecord?id=CVE-2024-50355","licence":"CVE Terms of Use","modified":"2024-11-15T16:07:05.229Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4m5r-w2rq-q54q","url":"https://github.com/advisories/GHSA-4m5r-w2rq-q54q","licence":"CC-BY-4.0","modified":"2024-11-15T21:09:20.334Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50355","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50355","licence":"Public domain","modified":"2026-06-17T08:04:17.730Z"}],"updatedAt":"2026-11-25T22:58:48.303Z","epss":{"score":0.00342,"percentile":0.297,"date":"2026-12-01T12:00:22.000Z"}}