# CVE-2021-21312: Stored XSS on documents

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:H/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.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2021-03-03T19:25:20.000Z
- Modified: 2026-06-17T03:35:16.357Z
- Weaknesses: 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 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.

(As written by CVE List.)

## Affected

- glpi-project glpi: < 9.5.4; before 9.5.4

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/glpi-project/glpi/releases/tag/9.5.4> (release-notes, third-party-advisory)
- <https://github.com/glpi-project/glpi/security/advisories/GHSA-c7f6-3mr7-3rq2> (third-party-advisory)

## Sources

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

---

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