# LibreNMS — Stored XSS via SNMP/Syslog Data in Legacy Templates

High severity, published 2026-08-26. Update librenms/librenms to 26.5.0 or later: composer update librenms/librenms.

Canonical URL: https://buzzphp.com/security/ghsa-7w8c-qgxg-m7jx · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.1) |
| Published | 2026-08-26 |
| Updated | 2026-08-26 |
| GHSA | [GHSA-7w8c-qgxg-m7jx](https://github.com/advisories/GHSA-7w8c-qgxg-m7jx) |
| Weakness | CWE-79 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| librenms/librenms | < 26.5.0 | 26.5.0 |

## What to do

Update librenms/librenms to 26.5.0 or later: composer update librenms/librenms.

Check which version you run with `composer show librenms/librenms`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-7w8c-qgxg-m7jx on GitHub](https://github.com/advisories/GHSA-7w8c-qgxg-m7jx)
- [All Composer security advisories](https://buzzphp.com/security)
