GHSA-jmqm-f8q4-v7wx: XSS

Published Aug 12, 2026
·
Updated

Summary LegacyController.php:75 writes the page title into a document.title JS assignment using string interpolation. apps/proxmox.inc.php pushes $vars['instance'] and $vars['vmid'] (GET params, only striptags() applied) directly into $pagetitle. A single quote terminates the JS string, executing arbitrary script.

Details php // LegacyController.php:75 $html .= "<script>\ndocument.title = '$title';\n</script>";

// proxmox.inc.php:38,42 $pagetitle[] = $instance; // GET ?instance= $pagetitle[] = $vars['vmid']; // GET ?vmid=

PoC http://target/apps?app=proxmox&instance=%27%3Balert%28document.cookie%29%3B//

Confirmed in response: document.title = 'Apps - Proxmox - ';alert(document.cookie);// - LibreNMS';

Fix php // LegacyController.php:75 $html .= "<script>\ndocument.title = " . jsonencode($title) . ";\n</script>"; Also wrap $instance and $vars['vmid'] in htmlspecialchars() in proxmox.inc.php.

Prerequisite Any authenticated session. Victim must follow a crafted link.

Affected Software

1 affected componentFixes available
composer/librenms/librenms<=26.4.0
26.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/librenms/librenms to a version that resolves this vulnerability.

    Fixed in 26.5.0
  2. Configuration

    In `apps/proxmox.inc.php`, HTML-encode (use `htmlspecialchars()`) for the GET-derived values `$instance` and `$vars['vmid']` before inserting them into `$pagetitle`, replacing the current handling where only `strip_tags()` is applied.

    proxmox.inc.php Output encoding for $vars['instance'] and $vars['vmid'] = wrap $instance and $vars['vmid'] in htmlspecialchars()
  3. Configuration

    In `LegacyController.php` at the `document.title = '$title';` assignment site, ensure `$title` is properly encoded/escaped for JavaScript string context so a single quote in the page title cannot terminate the JS string and inject arbitrary script.

    LegacyController.php document.title string construction = avoid unescaped single-quote interpolation

Event History

Aug 12, 2026
Advisory Published
via GitHub·03:16 PM
Data Sourced
via GitHub·03:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-jmqm-f8q4-v7wx?

The severity of GHSA-jmqm-f8q4-v7wx is classified as medium with a score of 5.4.

2

What type of vulnerability is associated with GHSA-jmqm-f8q4-v7wx?

GHSA-jmqm-f8q4-v7wx is an XSS (Cross-Site Scripting) vulnerability.

3

How do I fix GHSA-jmqm-f8q4-v7wx?

To fix GHSA-jmqm-f8q4-v7wx, ensure that user input is properly sanitized and validated before being used in JavaScript assignments.

4

What is affected by GHSA-jmqm-f8q4-v7wx?

GHSA-jmqm-f8q4-v7wx affects the software package composer/librenms/librenms.

5

When was GHSA-jmqm-f8q4-v7wx published?

GHSA-jmqm-f8q4-v7wx was published on August 12, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
GHSA-jmqm-f8q4-v7wx - XSS - SecAlerts