PT-2026-83378

Published

2026-08-18

·

Updated

2026-08-18

Description by

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

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

php
// 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

php
echo htmlspecialchars(LibrenmsConfig::get('graph descr.' . $vars['type']), ENT QUOTES, 'UTF-8');

Prerequisite

Admin session to set the config value.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-7CJ5-V4PP-V632
Found an issue in the description? Have something to add? Feel free to write us 👾