{"id":"CVE-2023-48295","aliases":["CVE-2023-48295","GHSA-8phr-637g-pxrg"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting at Device groups Deletion feature in LibreNMS","summary":"LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems. Affected versions are subject to a cross site scripting (XSS) vulnerability in the device group popups. This issue has been addressed in commit `faf66035ea` which has been included in release version 23.11.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems. Affected versions are subject to a cross site scripting (XSS) vulnerability in the device group popups. This issue has been addressed in commit `faf66035ea` which has been included in release version 23.11.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Summary\nXSS attacks occurs when application is not sanitising inputs properly and rendering the code from user input to browser which could allow an attacker to execute malicious javascript code.\n\n### PoC\n1. Login\n2. Create a device group in /device-groups\n3. Name it as `\"><img src=x onerror=alert(1);>`\n4. save it\n5. Go to services and create a service template and add that device group into that and save it\n6. After that go back to device groups and delete that device, you will see XSS payload popup in message\n<img width=\"1043\" alt=\"Screenshot 2023-11-08 at 9 15 56 PM\" src=\"https://user-images.githubusercontent.com/31764504/281489434-9beaebd6-b9ce-4098-a8e0-d67b185062b5.png\">\n\n\n### Vulnerable code:\nhttps://github.com/librenms/librenms/blob/63eeeb71722237d1461a37bb6da99fda25e02c91/app/Http/Controllers/DeviceGroupController.php#L173C21-L173C21\n\nLine 173 is not sanitizing device name properly\n<img width=\"793\" alt=\"Screenshot 2023-11-08 at 9 26 14 PM\" src=\"https://user-images.githubusercontent.com/31764504/281490570-5ae6e73a-37ce-4683-8bc8-81655abd8d09.png\">\n\n### Impact\nCross site scripting can lead to cookie stealing attacks","format":"markdown","source":"ghsa"},{"lang":"es","text":"LibreNMS es un monitor de red basado en PHP/MySQL/SNMP con descubrimiento automático que incluye soporte para una amplia gama de hardware de red y sistemas operativos. Las versiones afectadas están sujetas a una vulnerabilidad de cross site scripting (XSS) en las ventanas emergentes del grupo de dispositivos. Este problema se solucionó en el commit `faf66035ea` que se incluyó en la versión 23.11.0. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2023-11-17T21:06:07.575Z","modified":"2026-06-17T06:33:56.833Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 23.11.0","status":"affected"}],"vendor":"librenms","product":"librenms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"23.11.0"}],"ecosystem":"Packagist","package":"librenms/librenms","purl":"pkg:composer/librenms/librenms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"23.11.0"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-8phr-637g-pxrg","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/commit/faf66035ea1f4c1c4f34559b9d0ed40ee4a19f90","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/blob/63eeeb71722237d1461a37bb6da99fda25e02c91/app/Http/Controllers/DeviceGroupController.php#L173C21-L173C21","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48295","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-08-10T15:46:31.156Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-48295","url":"https://www.cve.org/CVERecord?id=CVE-2023-48295","licence":"CVE Terms of Use","modified":"2024-08-10T15:48:41.284Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8phr-637g-pxrg","url":"https://github.com/advisories/GHSA-8phr-637g-pxrg","licence":"CC-BY-4.0","modified":"2024-02-16T08:19:35.423Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-48295","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48295","licence":"Public domain","modified":"2026-06-17T06:33:56.833Z"}],"updatedAt":"2026-11-25T22:58:30.585Z","epss":{"score":0.00648,"percentile":0.45774,"date":"2026-11-30T12:00:22.000Z"}}