CVE-2021-31274
5.4medium
Cross-site Scripting in LibreNMS
- Severity
- 5.4medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-2r2w-jrh2-p4gr
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| librenms/librenms (Packagist) | before 21.3.0 | GitHub Advisory Database |
| librenms librenms | before 21.3.0 | NVD |
All scores
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
En LibreNMS versiones anteriores a 21.3.0, se ha identificado una vulnerabilidad de tipo XSS almacenada en la página de acceso a la API debido a un saneo insuficiente de la variable $api-)description. Como resultado, puede ser ejecutado código Javascript arbitrario
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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31274 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2r2w-jrh2-p4gr changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-31274 changed 2026-06-17 | Public domain |