{"id":"CVE-2025-55296","aliases":["CVE-2025-55296","GHSA-vxq6-8cwm-wj99"],"related":[],"kind":"vulnerability","state":"published","title":"LibreNMS allows stored XSS in Alert Template name field","summary":"librenms is a community-based GPL-licensed network monitoring system. A stored Cross-Site Scripting (XSS) vulnerability exists in LibreNMS (<= 25.6.0) in the Alert Template creation feature. This allows a user with the admin role to inject malicious JavaScript, which will be executed when the template is rendered, potentially compromising other admin accounts. This vulnerability is fixed in 25.8.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"librenms is a community-based GPL-licensed network monitoring system. A stored Cross-Site Scripting (XSS) vulnerability exists in LibreNMS (<= 25.6.0) in the Alert Template creation feature. This allows a user with the admin role to inject malicious JavaScript, which will be executed when the template is rendered, potentially compromising other admin accounts. This vulnerability is fixed in 25.8.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA stored Cross-Site Scripting (XSS) vulnerability exists in LibreNMS (<= 25.6.0) in the Alert Template creation feature. This allows a user with the **admin role** to inject malicious JavaScript, which will be executed when the template is rendered, potentially compromising other admin accounts.\n\n---\n### Details\n\nIn the LibreNMS web UI, when a user with the **admin role** visits `/templates` and clicks **\"Create new alert template\"**, the **\"Template name\"** field fails to properly sanitize input. By inserting a payload like:\n\n```\n&lt;script>alert(document.cookie)&lt;/script> \n```\n\nand filling the other fields with arbitrary content (e.g., `test`), once the template is saved, the script is executed. This confirms that user input is stored and later rendered without proper output encoding.\n\nThis vulnerability can be exploited for session hijacking, data theft, or other malicious actions targeting other admin users.\n\n---\n### PoC\n\n1. Log in to LibreNMS using an account with the **admin role**.\n2. Navigate to: `http://localhost:8000/templates`.\n3. Click the **\"Create new alert template\"** button.\n4. Input the following into the **Template name** field:\n\n   ```\n   &lt;script>alert(document.cookie)&lt;/script>\n   ```\n5. Fill the remaining fields (`Template`, `Alert title`, `Recovery title`) with arbitrary content such as `test`.\n6. Click **\"Create template\"**.\n7. Upon saving, a JavaScript alert pops up, confirming the stored XSS is triggered.\n<img width=\"1574\" height=\"848\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bc482874-c47e-48e3-83b6-cb4a9dcf4a53\" />\n\n---\n### Impact\n\n **Type**: Stored Cross-Site Scripting (XSS)\n **Affected users**: Only accounts with the **admin role** who access the Alert Templates page (`http://localhost:8000/templates`) are affected.\n **Attackers need**: Authenticated admin-level access.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LibreNMS es un sistema de monitorización de red comunitario con licencia GPL. Existe una vulnerabilidad de Cross-Site Scripting (XSS) almacenado en LibreNMS (versión anterior a la 25.6.0) en la función de creación de plantillas de alerta. Esto permite que un usuario con rol de administrador inyecte JavaScript malicioso, que se ejecutará al renderizar la plantilla, lo que podría comprometer otras cuentas de administrador. Esta vulnerabilidad se ha corregido en la versión 25.8.0.","source":"nvd"}],"published":"2025-08-18T17:27:52.662Z","modified":"2026-06-17T09:41:36.243Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","score":5.5,"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":"< 25.8.0","status":"affected"}],"vendor":"librenms","product":"librenms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"25.8.0"}],"ecosystem":"Packagist","package":"librenms/librenms","purl":"pkg:composer/librenms/librenms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"25.8.0"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-vxq6-8cwm-wj99","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/commit/8ade3d827d317f5ac4b336617aafff865f825958","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55296","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":"2025-08-18T17:37:45.472Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-55296","url":"https://www.cve.org/CVERecord?id=CVE-2025-55296","licence":"CVE Terms of Use","modified":"2025-08-18T17:38:16.117Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vxq6-8cwm-wj99","url":"https://github.com/advisories/GHSA-vxq6-8cwm-wj99","licence":"CC-BY-4.0","modified":"2025-08-18T23:12:15.682Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-55296","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55296","licence":"Public domain","modified":"2026-06-17T09:41:36.243Z"}],"updatedAt":"2026-11-25T22:59:02.664Z","epss":{"score":0.28148,"percentile":0.98148,"date":"2026-12-02T12:00:21.000Z"}}