BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-21312 in Glpi-Project Glpi

Medium 4.8

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), inde...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.14.8
EPSS0.6%
EPSS percentile43th
FixUnknown

Remotely exploitable over the network, low complexity, high privileges required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
Glpi-Project Glpi < 9.5.4

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-21312
BreachSpider IDBS-2021-GLOBAL-240990-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Published2021-03-03
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-79: Cross-Site Scripting (XSS)

Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.

Related attack patterns (CAPEC)

CAPEC-85 AJAX Footprinting via CWE-79

CAPEC-209 XSS Using MIME Type Mismatch via CWE-79

CAPEC-588 DOM-Based XSS via CWE-79

CAPEC-591 Reflected XSS via CWE-79

CAPEC-592 Stored XSS via CWE-79

Show all 6

CAPEC-63 Cross-Site Scripting (XSS) via CWE-79

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

GLPI versions prior to 9.5.4 contain a vulnerability in the document upload function where the 'Web Link' form field is not properly sanitized, allowing for potential Cross-Site Scripting (XSS) attacks.

A malicious user can exploit this vulnerability by injecting malicious scripts into the 'Web Link' field during the document upload process. This can lead to unauthorized actions being performed on behalf of other users who view the affected document.

Questions

What is CVE-2021-21312?

GLPI versions prior to 9.5.4 contain a vulnerability in the document upload function where the 'Web Link' form field is not properly sanitized, allowing for potential Cross-Site Scripting (XSS) attacks.

What is the CVSS score for CVE-2021-21312?

CVE-2021-21312 has CVSS 4.8 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N. EPSS: 0.6%.

Is CVE-2021-21312 actively exploited?

No confirmed active exploitation of CVE-2021-21312 as of 2026-09-25.

How do I remediate CVE-2021-21312?

Priority: MEDIUM.

What systems are affected by CVE-2021-21312?

CVE-2021-21312 affects Glpi-Project Glpi.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Glpi-Project","product":"Glpi","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.