{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21313","published":"2021-03-03T20:15:12.200000Z","last_modified":"2026-06-17T03:35:16.477000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-74","CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*","part":"a","vendor":"glpi-project","product":"glpi","version_end_excluding":"9.5.4"}],"cpes_truncated":false,"vendors":["glpi-project"],"products":["glpi-project/glpi"],"epss":{"score":0.0093,"percentile":0.58953,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-21313/","html_en":"/en/cve/CVE-2021-21313/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21313","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21313"},"untrusted":{"vendor_name":"Glpi-project","product_name":"Glpi","desc_en":"GLPI is open source software which stands for Gestionnaire Libre de Parc Informatique and it is a Free Asset and IT Management Software package. In GLPI before verison 9.5.4, there is a vulnerability in the /ajax/common.tabs.php endpoint, indeed, at least two parameters _target and id are not properly sanitized. Here are two payloads (due to two different exploitations depending on which parameter you act) to exploit the vulnerability:/ajax/common.tabs.php?_target=javascript:alert(document.cookie)&_itemtype=DisplayPreference&_glpi_tab=DisplayPreference$2&id=258&displaytype=Ticket (Payload triggered if you click on the button). /ajax/common.tabs.php?_target=/front/ticket.form.php&_itemtype=Ticket&_glpi_tab=Ticket$1&id=(){};(function%20(){alert(document.cookie);})();function%20a&#.","affected":[{"untrusted_vendor":"glpi-project","untrusted_product":"glpi","versions":[]}],"references":[{"url":"https://github.com/glpi-project/glpi/releases/tag/9.5.4","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/glpi-project/glpi/security/advisories/GHSA-h4hj-mrpg-xfgx","tags":["Third Party Advisory"]}]}}