GHSA-7cj5-v4pp-v632: LibreNMS Cross-Site Scripting Vulnerability

MODERATE
CVSS 4.8
CWE-79
Published
Advisory Summary

GHSA-7cj5-v4pp-v632 is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting LibreNMS libraries in the Packagist ecosystem. The issue involves stored xss via graph_descr admin config settings echoed without escaping to all authenticated users. Remediation is available by upgrading affected packages to version 26.7.0.

GHSA-7cj5-v4pp-v632 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7cj5-v4pp-v632
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product LibreNMS
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-7cj5-v4pp-v632

To remediate this vulnerability, upgrade all affected LibreNMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

librenms/librenms fixed: 26.7.0
Upgrade librenms/librenms to 26.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for librenms/librenms

How to Check if You Are Affected

To determine whether your application is affected by GHSA-7cj5-v4pp-v632, inspect your project dependencies for LibreNMS:

inspect dependencies for librenms/librenms

Analyze the terminal output to locate any version of LibreNMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.7.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where 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. In LibreNMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

GHSA-7cj5-v4pp-v632 Affected LibreNMS Versions

1 component(s)
Fixed Versions:
26.7.0
Product / Package Ecosystem Affected Versions Fixed Version
librenms/librenms
Packagist
< 26.7.0
26.7.0

References

Frequently Asked Questions

What is GHSA-7cj5-v4pp-v632?
GHSA-7cj5-v4pp-v632 is a security vulnerability in LibreNMS involving Stored XSS via graph_descr admin config settings echoed without escaping to all authenticated users under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which LibreNMS versions are affected?
Affected versions include releases prior to 26.7.0 across affected packages: librenms/librenms.
What version fixes GHSA-7cj5-v4pp-v632?
Upgrading to 26.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is librenms/librenms affected?
Yes, librenms/librenms is affected in releases prior to 26.7.0. Upgrade your dependency to 26.7.0 or later.
What is the CVSS score of GHSA-7cj5-v4pp-v632?
GHSA-7cj5-v4pp-v632 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-7cj5-v4pp-v632?
GHSA-7cj5-v4pp-v632 is classified under CWE-79: 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.).
How can I check Packagist dependencies for GHSA-7cj5-v4pp-v632?
Run the dependency tree command: 'inspect dependencies for librenms/librenms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7cj5-v4pp-v632",
  "modified" : "2026-08-18T21:17:20Z",
  "published" : "2026-08-18T21:17:20Z",
  "aliases" : [ ],
  "summary" : "LibreNMS: Stored XSS via graph_descr admin config settings echoed without escaping to all authenticated users",
  "details" : "### Summary\nThe `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.\n\n### CVSS\n`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N` — **4.8 Medium**\n\n### Details\n```php\n// graphs.inc.php:194\necho LibrenmsConfig::get('graph_descr.' . $vars['type']);\n```\n\n### PoC\n```\nPUT /settings/graph_descr.device_processor\n{\"value\": \"<img src=x onerror=\\\"alert('ADV-15')\\\">\"}\n\nGET /graphs?type=device_processor\n→ <img src=x onerror=\"alert('ADV-15')\">\n```\n\n### Fix\n```php\necho htmlspecialchars(LibrenmsConfig::get('graph_descr.' . $vars['type']), ENT_QUOTES, 'UTF-8');\n```\n\n### Prerequisite\nAdmin session to set the config value.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "librenms/librenms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "26.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/security/advisories/GHSA-7cj5-v4pp-v632"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/librenms/librenms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/releases/tag/26.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-18T21:17:20Z",
    "nvd_published_at" : null
  }
}