{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31274","published":"2021-09-08T18:15:10.660000Z","last_modified":"2026-06-17T03:51:31.777000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","part":"a","vendor":"librenms","product":"librenms","version_end_excluding":"21.3.0"}],"cpes_truncated":false,"vendors":["librenms"],"products":["librenms/librenms"],"epss":{"score":0.00774,"percentile":0.52223,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-2r2w-jrh2-p4gr","ecosystem":"Packagist","name":"librenms/librenms","purl":"pkg:composer/librenms/librenms","ranges":[{"introduced":"0","fixed":"21.3.0"}],"versions":["1.19","1.20","1.20.1","1.21","1.22","1.22.01","1.23","1.24","1.25","1.26","1.27","1.28","1.29","1.30","1.30.01","1.31","1.31.01","1.31.02","1.31.03","1.32","1.32.01","1.33","1.33.01","1.34","1.35","1.36","1.36.01","1.37","1.38","1.39","1.40","1.41","1.42","1.42.01","1.43","1.44","1.45","1.46","1.47","1.48","1.48.1","1.49","1.50","1.50.1","1.51","1.52","1.53","1.53.1","1.54","1.55","1.56","1.57","1.58","1.58.1","1.59","1.60","1.61","1.62","1.62.1","1.62.2","1.63","1.64","1.64.1","1.65","1.65.1","1.66","1.67","1.68","1.69","1.70.0","1.70.1","21.1.0","21.2.0"],"versions_truncated":false}],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2021-31274/","html_en":"/en/cve/CVE-2021-31274/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31274","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31274"},"untrusted":{"vendor_name":"Librenms","product_name":"Librenms","desc_en":"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":[],"references":[{"url":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431","tags":["Vendor Advisory"]},{"url":"https://github.com/librenms/librenms","tags":["Product","Third Party Advisory"]},{"url":"https://github.com/librenms/librenms/pull/12739","tags":["Patch","Third Party Advisory"]}]}}