CVE-2021-21313
XSS on tabs
Reported by github_m · Published March 3, 2021
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&#.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| glpi-project | glpi | < 9.5.4 |
| glpi-project | glpi | 0 |
Timeline
- Mar 3, 2021 CVE Published
- Mar 3, 2021 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21313
vulnetix vdb fixes CVE-2021-21313
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21313/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart