CVE-2021-21312
CVE-2021-21312 is a medium-severity vulnerability in Glpi-project Glpi with a CVSS 3.x base score of 5.4. 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 5.4)
- CVSS v2: 3.5
- EPSS exploit prediction: 1% (49th 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 within the document upload function (Home > Management > Documents > Add, or /front/document.form.php endpoint), indeed one of the form field: "Web Link" is not properly sanitized and a malicious user (who has document upload rights) can use it to deliver JavaScript payload. For example if you use the following payload: " accesskey="x" onclick="alert(1)" x=", the content will be saved within the database without any control. And then once you return to the summary documents page, by clicking on the "Web Link" of the newly created file it will create a new empty tab, but on the initial tab the pop-up "1" will appear.
Frequently asked questions
- What is CVE-2021-21312?
- 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 within the document upload function (Home > Management > Documents > Add, or /front/document.form.php endpoint), indeed one of the form field: "Web Link" is not properly sanitized and a malicious user (who has document upload rights) can use it to deliver JavaScript payload. For example if you use the following payload: " accesskey="x" onclick="alert(1)" x=", the content will be saved within the database without any control. And then once you return to the summary documents page, by clicking on the "Web Link" of the newly created file it will create a new empty tab, but on the initial tab the pop-up "1" will appear.
- How severe is CVE-2021-21312?
- CVE-2021-21312 has a CVSS 3.x base score of 5.4, rated medium severity. It is exploitable over network with high attack complexity, requires high privileges and user interaction. Impact on confidentiality is none, integrity high, and availability none.
- Is CVE-2021-21312 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (49th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21312?
- CVE-2021-21312 affects Glpi-project Glpi. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21312?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-21312 published?
- CVE-2021-21312 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-c7f6-3mr7-3rq2
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 →