CVE-2026-45694
librenms/librenms: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CVE-2026-45694)
Beschreibung
Zusammenfassung
In der Datei LegacyController.php:75 wird der Seitentitel mittels Zeichenketteninterpolation in einer JavaScript-Zuweisung zu document.title geschrieben. Die Datei apps/proxmox.inc.php fügt $vars['instance'] und $vars['vmid'] (GET-Parameter, nur strip_tags() angewendet) direkt in $pagetitle ein. Ein einfaches Anführungszeichen beendet die JavaScript-Zeichenkette und führt einen beliebigen Skriptcode aus.
Details
// LegacyController.php:75
$html .= "<script>\ndocument.title = '$title';\n</script>";
// proxmox.inc.php:38,42
$pagetitle[] = $instance; // GET ?instance=
$pagetitle[] = $vars['vmid']; // GET ?vmid=
Nachweis des Angriffs (PoC)
http://zielanwendung/apps?app=proxmox&instance=%27%3Balert%28document.cookie%29%3B//
Bestätigt in der Antwort:
document.title = 'Apps - Proxmox - ';alert(document.cookie);// - LibreNMS';
Behebung
// LegacyController.php:75
$html .= "<script>\ndocument.title = " . json_encode($title) . ";\n</script>";
Außerdem sollten $instance und $vars['vmid'] in proxmox.inc.php mit htmlspecialchars() umschlossen werden.
Voraussetzung
Jede authentifizierte Sitzung. Das Opfer muss einem manipulierten Link folgen.
Metriken
Weakness-Klassen (CWE)
CWE-79Base
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
cwe.mitre.org →
Re-Analyse & Statuswechsel
Chronologie der NVD-Audit-Events für diese CVE — Reanalyses, CVSS-Updates, CPE-Diffs.
- New CVE Received2026-08-26 22:16 UTC· security-advisories@github.com
- Description: LibreNMS is a network monitoring system. In versions up to and including 26.4.0, the Proxmox application view is vulnerable to reflected cross-site scripting through the user-supplied instance and vmid GET parameters, which are reflected into the page title without adequate encoding. The parameters are placed into the page title with only strip_tags applied, and the title is then written into an inline document.title assignment through string interpolation, so a single quote terminates the JavaScript string and the remaining input runs as script. An attacker who lures an authenticated user into following a crafted link can execute script in that user's session, enabling actions such as theft of session data. This issue is fixed in version 26.5.0.
- CVSS V3.1: AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CWE: CWE-79
- Affected: New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/45xxx/CVE-2026-45694.json">CVE-2026-45694</a>
Betroffene Produkte
Aus der Hersteller-/CERT-Meldung extrahierte Produkte und Versionsbereiche. Ein Version-Range wie „<4.14.6“ impliziert die Update-Empfehlung „auf 4.14.6 oder höher aktualisieren“.
packagist
librenms/librenms1.19
packagist
librenms/librenms1.20
packagist
librenms/librenms1.20.1
packagist
librenms/librenms1.21
packagist
librenms/librenms1.22
packagist
librenms/librenms1.22.01
packagist
librenms/librenms1.23
packagist
librenms/librenms1.24
packagist
librenms/librenms1.25
packagist
librenms/librenms1.26
packagist
librenms/librenms1.27
packagist
librenms/librenms1.28
packagist
librenms/librenms1.29
packagist
librenms/librenms1.30
packagist
librenms/librenms1.30.01
packagist
librenms/librenms1.31
packagist
librenms/librenms1.31.01
packagist
librenms/librenms1.31.02
packagist
librenms/librenms1.31.03
packagist
librenms/librenms1.32
packagist
librenms/librenms1.32.01
packagist
librenms/librenms1.33
packagist
librenms/librenms1.33.01
packagist
librenms/librenms1.34