PT-2026-83378 · Packagist · Librenms/Librenms

Publicado

2026-08-18

·

Atualizado

2026-08-18

CVSS v3.1

4.8

Média

VetorAV: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:N4.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.

Correção

XSS

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

GHSA-7CJ5-V4PP-V632

Produtos afetados

Librenms/Librenms