{"id":"CVE-2021-31274","state":"PUBLISHED","title":"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 Ja","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.","publishedAt":"2021-09-08T17:12:29.000Z","updatedAt":"2024-08-03T22:55:53.692Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431","https://github.com/librenms/librenms","https://github.com/librenms/librenms/pull/12739"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:30.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/31xxx/CVE-2021-31274.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-31274","state":"PUBLISHED","datePublished":"2021-09-08T17:12:29.000Z","dateUpdated":"2024-08-03T22:55:53.692Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-04-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431","tags":["x_refsource_MISC"]},{"url":"https://github.com/librenms/librenms","tags":["x_refsource_MISC"]},{"url":"https://github.com/librenms/librenms/pull/12739","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-09-08T17:12:29.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-31274","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431","refsource":"MISC","url":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431"},{"name":"https://github.com/librenms/librenms","refsource":"MISC","url":"https://github.com/librenms/librenms"},{"name":"https://github.com/librenms/librenms/pull/12739","refsource":"MISC","url":"https://github.com/librenms/librenms/pull/12739"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://community.librenms.org/t/vulnerability-report-cross-site-scripting-xss-in-the-api-access-page/15431","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/librenms/librenms","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/librenms/librenms/pull/12739","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T22:55:53.692Z"}}]}}}