Stored XSS in LibreNMS Legacy Templates Enables Admin Session Takeover
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Aug 26, 2026

A high-severity stored cross-site scripting vulnerability, GHSA-7w8c-qgxg-m7jx (CWE-79), affects LibreNMS legacy PHP templates that render monitoring data without consistent output encoding. Attackers able to control SNMP metadata, spoof Syslog messages, or supply crafted BGP descriptions can store JavaScript payloads that execute when administrators view device-health, routing, or event-log pages, potentially compromising administrator browser sessions and enabling session takeover.
Organizations should update LibreNMS and related packages to version 26.5.0 or later; Tenable Cloud Security plugin 446367 can identify affected librenms/librenms deployments. Developers should apply contextual output encoding, including Laravel's e() helper or escaped Blade {{ ... }} syntax rather than raw output, and deploy a restrictive Content Security Policy as defense in depth. No known exploitation has been reported.


