Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21312
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:14 UTC · Revision 1

Source evidence

CVE-2021-21312

core-osv · Original source

Published 3 Mar 2021, 20:15 UTC

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.

osv:CVE-2021-21312
Complete source record
{
  "id": "bf30733fa1630e24360c82c4a385a0e28fbe79b12150c8cc8f0c6eb977b0402b",
  "url": "https://osv.dev/vulnerability/CVE-2021-21312",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21312",
    "summary": "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.",
    "evidence": "osv:CVE-2021-21312",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-21312",
      "aliases": [
        "CVE-2021-21312",
        "GHSA-c7f6-3mr7-3rq2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/glpi-project/glpi",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "59a0a0b6101fcd54b00bfc6a61d4e707513c08c9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "9.5.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "59a0a0b6101fcd54b00bfc6a61d4e707513c08c9"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "9.5.4"
                  }
                ]
              }
            }
          ],
          "versions": [
            "9.5.3",
            "9.5.2",
            "9.5.1",
            "9.5.0",
            "9.5.0-rc2",
            "9.5.0-rc1",
            "9.4.1.1",
            "9.4.1",
            "9.4.0",
            "9.4.0-rc2",
            "9.4.0-rc1",
            "9.4.0-beta",
            "9.3-beta",
            "9.1",
            "9.1-RC2",
            "9.1-RC1",
            "0.90",
            "0.90-RC2",
            "0.90-RC1",
            "0.90-beta2",
            "0.90-beta1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21312.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:33.485813944Z",
      "provider": "osv",
      "references": [
        "https://github.com/glpi-project/glpi/releases/tag/9.5.4",
        "https://github.com/glpi-project/glpi/security/advisories/GHSA-c7f6-3mr7-3rq2"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-21312",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384417,
  "published_at": "2021-03-03T20:15:12.06+00:00"
}