Advisory

GHSA-7cj5-v4pp-v632

Also known as: CVE-2026-84188

Summary

LibreNMS: Stored XSS via graph_descr admin config settings echoed without escaping to all authenticated users

Details

Summary
The graph_descr.<graphtype> family of settings is echoed verbatim without htmlspecialchars() in includes/html/pages/graphs.inc.php:194. Any admin can store a malicious HTML payload that executes in every authenticated user's browser viewing that graph type.

CVSS
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N — 4.8 Medium

Details

// graphs.inc.php:194
echo LibrenmsConfig::get('graph_descr.' . $vars['type']);

PoC

PUT /settings/graph_descr.device_processor
{"value": "<img src=x onerror=\"alert('ADV-15')\">"}

GET /graphs?type=device_processor
→ <img src=x onerror="alert('ADV-15')">

Fix

echo htmlspecialchars(LibrenmsConfig::get('graph_descr.' . $vars['type']), ENT_QUOTES, 'UTF-8');

Prerequisite
Admin session to set the config value.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-08-18 21:17 UTC
Modified
2026-09-02 03:55 UTC

Affected packages and fixes

librenms/librenms

Packagist · All systems

Affected

  • introduced 0, fixed 26.7.0 (ecosystem)

Fixed versions

26.7.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences