GHSA-7cj5-v4pp-v632: LibreNMS Cross-Site Scripting Vulnerability
MODERATEGHSA-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
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).
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.
Upgrade librenms/librenms to 26.7.0
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
GHSA-7cj5-v4pp-v632 Affected LibreNMS Versions
1 component(s)| 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?
Which LibreNMS versions are affected?
What version fixes GHSA-7cj5-v4pp-v632?
Is librenms/librenms affected?
What is the CVSS score of GHSA-7cj5-v4pp-v632?
What CWE is associated with GHSA-7cj5-v4pp-v632?
How can I check Packagist dependencies for GHSA-7cj5-v4pp-v632?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}