CVE-2022-4068
MEDIUM 5.4CVSS 3.1Cross-site Scripting in librenms/librenms
A user is able to enable their own account if it was disabled by an admin while the user still holds a valid session. Moreover, the username is not properly sanitized in the admin user overview. This enables an XSS attack that enables an attacker with a low privilege user to execute arbitrary JavaScript in the context of an admin's account.
- Published
- 20 Nov 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-79CWE-915
- Also known as
- GHSA-f3hw-3h74-wr98
- Sources
- NVDJSONOSV GHSA-f3hw-3h74-wr98JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.6 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.0 | HIGH 7.6 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | librenms | librenmscpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* |
< 22.10.0 | 22.10.0 |
| OSV | Packagist | librenms/librenms | < 22.10.0 | 22.10.0 |
References
- https://github.com/librenms/librenms/commit/09a2977adb8bc4b1db116c725d661160c930d3a1 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/becfecc4-22a6-4f94-bf83-d6030b625fdc · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4068 · ADVISORY
- https://github.com/librenms/librenms · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 20 Nov 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 20 Nov 2022)