{"id":"CVE-2024-49758","aliases":["CVE-2024-49758","GHSA-c86q-rj37-8f85"],"related":[],"kind":"vulnerability","state":"published","title":"LibreNMS has a stored XSS in ExamplePlugin with Device's Notes","summary":"LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. User with Admin role can add Notes to a device, the application did not properly sanitize the user input, when the ExamplePlugin enable, if java script code is inside the device's Notes, its will be trigger. 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 add Notes to a device, the application did not properly sanitize the user input, when the ExamplePlugin enable, if java script code is inside the device's Notes, its will be trigger. 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 add Notes to a device, the application did not properly sanitize the user input, when the ExamplePlugin enable, if java script code is inside the device's Notes, its will be trigger.\n\n### PoC\n\n1. As an admin user, enable the ExamplePlugin.\n\n![image](https://github.com/user-attachments/assets/409f3a0c-7fac-46e3-8140-84749a120dd9)\n\n2. Add the payload `<img src=\"x\" onerror=\"alert(document.cookie)\">` into the device Notes\n\n![image](https://github.com/user-attachments/assets/c2a57dbd-ea07-4166-8b29-61be6ad6c2b6)\n\n3. Once visit the Overview of the Device, a pop-up will show up.\n\n![image](https://github.com/user-attachments/assets/3c9b87c3-d010-49e7-bd13-4a715db4e0c3)\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 agregar notas a un dispositivo, la aplicación no desinfectó correctamente la entrada del usuario, cuando se habilita ExamplePlugin, si el código de script de Java está dentro de las notas del dispositivo, se activará. Esta vulnerabilidad se corrigió en 24.10.0.","source":"nvd"}],"published":"2024-11-15T15:17:33.000Z","modified":"2026-06-17T08:00:23.607Z","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:R/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"},{"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-c86q-rj37-8f85","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/commit/24b142d753898e273ec20b542a27dd6eb530c7d8","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49758","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-15T18:51:55.820Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49758","url":"https://www.cve.org/CVERecord?id=CVE-2024-49758","licence":"CVE Terms of Use","modified":"2024-11-15T18:52:50.332Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c86q-rj37-8f85","url":"https://github.com/advisories/GHSA-c86q-rj37-8f85","licence":"CC-BY-4.0","modified":"2024-11-15T21:10:02.363Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49758","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49758","licence":"Public domain","modified":"2026-06-17T08:00:23.607Z"}],"updatedAt":"2026-11-25T22:58:48.300Z","epss":{"score":0.00499,"percentile":0.35692,"date":"2026-11-30T12:00:22.000Z"}}