# CVE-2021-21313: XSS on tabs

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2021-03-03T19:25:13.000Z
- Modified: 2026-06-17T03:35:16.477Z
- Weaknesses: CWE-74, CWE-79
- Assigned by: GitHub_M

## Description

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&#.

(As written by CVE List.)

## Affected

- glpi-project glpi: < 9.5.4; before 9.5.4

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/glpi-project/glpi/security/advisories/GHSA-h4hj-mrpg-xfgx> (third-party-advisory)
- <https://github.com/glpi-project/glpi/releases/tag/9.5.4> (release-notes, third-party-advisory)

## Sources

- CVE List: [CVE-2021-21313](https://www.cve.org/CVERecord?id=CVE-2021-21313), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21313](https://nvd.nist.gov/vuln/detail/CVE-2021-21313), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21313 · Whole record: https://cve.day/CVE-2021-21313.json · Rebuilt by cve.day 2026-11-25T22:58:00.134Z
