CVE-2021-31274
MEDIUM 5.4CVSS 3.1Cross-site Scripting in LibreNMS
In LibreNMS < 21.3.0, a stored XSS vulnerability was identified in the API Access page due to insufficient sanitization of the $api->description variable. As a result, arbitrary Javascript code can get executed.
- Published
- 8 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-2r2w-jrh2-p4gr
- Sources
- NVDJSONOSV GHSA-2r2w-jrh2-p4grJSON
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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | librenms | librenmscpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* |
< 21.3.0 | 21.3.0 |
| OSV | Packagist | librenms/librenms | < 21.3.0 | 21.3.0 |
References
- https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431 · Vendor Advisory, WEB
- https://github.com/librenms/librenms · Product, Third Party Advisory, WEB
- https://github.com/librenms/librenms/pull/12739 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31274 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Sep 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Sep 2021)