{"id":"CVE-2021-31274","aliases":["GHSA-2r2w-jrh2-p4gr"],"url":"https://o3.security/vulnerability/CVE-2021-31274","summary":"Cross-site Scripting in LibreNMS","details":"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":"2021-09-08T18:15:10.660Z","modified":"2026-10-20T10:54:39.980033363Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00774,"percentile":0.56652,"asOf":"2026-11-21"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"librenms/librenms","fixedVersion":"21.3.0"}],"fix":{"url":"https://github.com/librenms/librenms/pull/12739","label":"librenms/librenms#12739"},"references":[{"type":"ADVISORY","url":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431"},{"type":"FIX","url":"https://github.com/librenms/librenms/pull/12739"},{"type":"PACKAGE","url":"https://github.com/librenms/librenms"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31274"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:54:39.980033363Z"}}