CVE-2022-29711: Cross site scripting in librenms
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00088%
CWE
Published
6/3/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| librenms/librenms | composer | < 22.4.0 | 22.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unescaped output of user-controlled data in the GraylogController. The patch added htmlspecialchars() to sanitize the 'source' and 'message' fields in the formatMessage method. Since these values originated from external graylog messages (user-controllable input) and were embedded directly into HTML responses without contextual escaping, the pre-patch version of this function was the root cause of the XSS vulnerability.