CVE-2022-4067: Cross-site Scripting in librenms/librenms
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99556%
CWE
Published
11/20/2022
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| librenms/librenms | composer | < 22.10.0 | 22.10.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit 8e85698 shows three instances in notifications.inc.php where $notif['title'] was output without escaping. The fix added htmlentities() to sanitize the output. Since notification titles are user-controlled (via stored data), the lack of escaping in these echo statements directly enabled stored XSS. The file path and vulnerability pattern match the CWE-79 description and patch context.