Vulnerability · Published Sep 8, 2021 · Assigned by mitre
CVE-2021-31274
Medium 5.4
In plain English
A medium-severity security flaw in the librenms/librenms package (Packagist). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.4Medium
Exploit odds (30 days)0.8%top 44.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | librenms/librenms | 21.3.0 | GHSA-2r2w-jrh2-p4gr |
Affected products (as reported)
References
- https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431 x_refsource_MISC
- https://github.com/librenms/librenms x_refsource_MISC
- https://github.com/librenms/librenms/pull/12739 x_refsource_MISC