CVE-2021-21313
CVE-2021-21313 — XSS on tabs
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&#.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
4.9
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.9 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-74
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /ajax/common.tabs.php, /ajax/common.tabs.php?_target=javascript:alert(document.cookie)&_itemtype=DisplayPreference&_glpi_tab=DisplayPreference$2&id=258&displaytype=Ticket, /ajax/common.tabs.php?_target=/front/ticket.form.php&_itemtype=Ticket&_glpi_tab=Ticket$1&id=().
References
2 on the record
- github.com/glpi-project/glpi/security/advisories/GHSA-h4hj-mrpg-xfgx
x_refsource_CONFIRM
- github.com/glpi-project/glpi/releases/tag/9.5.4
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2022-35914 Teclib GLPI Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-57150 GLPI: Authenticated Massive Action Authorization BypassCVSS 8.7
- CVE-2026-139990 GLPI 11.0.0 before 11.0.9 Unauthenticated SQL Injection via planning.phpCVSS 7.5
- CVE-2025-20337 Cisco ISE API Unauthenticated Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-20281 Cisco ISE API Unauthenticated Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2023-22527 Atlassian Confluence Data Center and Server Template Injection VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Glpi Projectevery CVE for this vendor
- CWE-74other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.