LibreNMS — Stored XSS via SNMP/Syslog Data in Legacy Templates
High severity. Published 26 August 2026. Update librenms/librenms to 26.5.0 or later: composer update librenms/librenms.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| librenms/librenms (opens in a new tab) | < 26.5.0 | 26.5.0 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show librenms/librenms
composer auditAdvisory details
| Severity | HighCVSS 7.1 |
|---|---|
| Published | |
| Updated | |
| GHSA | GHSA-7w8c-qgxg-m7jx (opens in a new tab) |
| Weakness | CWE-79 |
What the advisory says
Summary
Multiple legacy PHP template files in LibreNMS directly output SNMP-sourced and syslog-sourced data into HTML without escaping. An attacker who controls a monitored network device (via compromised SNMP agent or syslog sender) can inject arbitrary JavaScript that executes when any authenticated LibreNMS user views the affected pages.
Vulnerable Code
Location 1: Syslog program field (clearest instance)
File: includes/html/print-syslog.inc.php:11,13
The program field is output without htmlspecialchars() while the adjacent msg field IS properly escaped. The program value comes from syslog messages received from monitored devices.
Source: GHSA-7w8c-qgxg-m7jx (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- LibreNMS Vulnerable to Remote Code Execution via AboutController (opens in a new tab) (medium, 18 August 2026)
- LibreNMS Vulnerable to Remote Code Execution by Signal Alert Transportation module (high, 18 August 2026)
- LibreNMS: SSRF-driven stored XSS via Oxidized API response fields in device showconfig page (high, 18 August 2026)
- LibreNMS: Stored XSS via graph_descr admin config settings echoed without escaping to all authenticated users (opens in a new tab) (medium, 18 August 2026)
- LibreNMS: Reflected XSS via Proxmox instance/vmid GET parameters injected into document.title JavaScript assignment (opens in a new tab) (medium, 12 August 2026)