{"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-07-08T21:26:46.287876Z","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":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T21:26:46.287876Z"}}