{"id":"CVE-2021-31274","details":"In LibreNMS \u003c 21.3.0, a stored XSS vulnerability was identified in the API Access page due to insufficient sanitization of the $api-\u003edescription variable. As a result, arbitrary Javascript code can get executed.","aliases":["GHSA-2r2w-jrh2-p4gr"],"modified":"2026-07-08T21:26:46.287876Z","published":"2021-09-08T18:15:10.660Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/librenms/librenms","events":[{"introduced":"0"},{"fixed":"d24730818f617898a6c0edd9654c649b02373ae7"}],"database_specific":{"cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"21.3.0"}],"source":"CPE_RANGE"}}],"versions":["21.2.0","21.1.0","1.70.1","1.70.0","1.69","1.68","1.67","1.66","1.65","1.64.1","1.64","1.63","1.62","1.61","1.60","1.59","1.58.1","1.58","1.57","1.56","1.55","1.54","1.53.1","1.53","1.52","1.51","1.50","1.49","1.48.1","1.48","1.47","1.46","1.45","1.44","1.43","1.42.01","1.42","1.41","1.40","1.39","1.38","1.37","1.36","1.35","1.33","1.32","1.31.03","1.31.02","1.31.01","1.28","1.27","1.26","1.25","1.21","201609","1.20","20160828","1.19","201608","201607","201606","201605","201604","201603","201602","201601","201512","201511","201510","201509","201508","201507","201505","201506","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31274.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}