BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
librenms/librenms (opens in a new tab)< 26.5.026.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 audit

Advisory details

SeverityHighCVSS 7.1
Published
Updated
GHSAGHSA-7w8c-qgxg-m7jx (opens in a new tab)
WeaknessCWE-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

All Composer security advisories