CVE-2021-21313
CVE-2021-21313 is a medium-severity vulnerability in Glpi-project Glpi with a CVSS 3.x base score of 4.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Medium (CVSS 3.x base score 4.9)
- CVSS v2: 4.3
- EPSS exploit prediction: 1% (61st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-79
- Affected product: Glpi-project Glpi
- Published:
- Last modified:
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&#.
Frequently asked questions
- What is CVE-2021-21313?
- 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&#.
- How severe is CVE-2021-21313?
- CVE-2021-21313 has a CVSS 3.x base score of 4.9, rated medium severity. It is exploitable over network with low attack complexity, requires high privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-21313 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (61st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21313?
- CVE-2021-21313 affects Glpi-project Glpi. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21313?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-21313 published?
- CVE-2021-21313 was published on 2021-03-03 and last updated on 2026-06-17.
References
- https://github.com/glpi-project/glpi/releases/tag/9.5.4
- https://github.com/glpi-project/glpi/security/advisories/GHSA-h4hj-mrpg-xfgx
Affected products (1)
- cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*
More vulnerabilities in Glpi-project Glpi
- CVE-2023-42802 — Critical (CVSS 10.0): GLPI is a free asset and IT management software package. Starting in version 10.0.7 and prior to version 10.0.10, an…
- CVE-2023-28849 — Critical (CVSS 10.0): GLPI is a free asset and IT management software package. Starting in version 10.0.0 and prior to version 10.0.7, GLPI…
- CVE-2022-35947 — Critical (CVSS 10.0): GLPI stands for Gestionnaire Libre de Parc Informatique and is a Free Asset and IT Management Software package, that…
- CVE-2025-21619 — Critical (CVSS 9.8): GLPI is a free asset and IT management software package. An administrator user can perfom a SQL injection through the…
- CVE-2022-35914 — Critical (CVSS 9.8): /vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.
- CVE-2022-31061 — Critical (CVSS 9.8): GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking…
All CVEs affecting Glpi-project Glpi →
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2026-96677 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache…
- CVE-2026-106102 — Critical (CVSS 10.0): Quasar Framework is a framework for building high-performance Vue.js user interfaces. Prior to 2.22.0, the SSR-only…
- CVE-2026-59167 — Critical (CVSS 10.0): SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript with no dependencies. Prior to 2.47.11,…
- CVE-2026-85061 — Critical (CVSS 10.0): MapLibre GL JS is an interactive vector tile map library for web browsers. Prior to 6.4.1, DOM.sanitize() in…
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →