Skip to content
Heist/ feed
Back to feed
Medium

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab

Type: advisorySources: OSV

A cross-site scripting issue has been discovered in GitLab affecting all versions starting from 5.1 before 16.10.7, all versions starting from 16.11 before 16.111.4, all versions starting from 17.0 before 17.0.2. When viewing an XML file in a repository in raw mode, it can be made to render as HTML if viewed under specific circumstances.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-4201
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:43 UTC · Revision 1

Source evidence

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab

core-osv · Original source

Published 12 Jun 2024, 23:01 UTC

A cross-site scripting issue has been discovered in GitLab affecting all versions starting from 5.1 before 16.10.7, all versions starting from 16.11 before 16.111.4, all versions starting from 17.0 before 17.0.2. When viewing an XML file in a repository in raw mode, it can be made to render as HTML if viewed under specific circumstances.

osv:CVE-2024-4201
Complete source record
{
  "id": "04d12eb124829c9461dcef3503741c5a2f66f4215d6ee6bcace73f896559e6f6",
  "url": "https://osv.dev/vulnerability/CVE-2024-4201",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab",
    "summary": "A cross-site scripting issue has been discovered in GitLab affecting all versions starting from 5.1 before 16.10.7, all versions starting from 16.11 before 16.111.4, all versions starting from 17.0 before 17.0.2. When viewing an XML file in a repository in raw mode, it can be made to render as HTML if viewed under specific circumstances.",
    "evidence": "osv:CVE-2024-4201",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-4201",
      "aliases": [
        "BIT-gitlab-2024-4201",
        "CVE-2024-4201"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gitlab-org/gitlab",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cbcfe12f58b815db9b9263b36f1576ae389b7276"
                },
                {
                  "fixed": "9ec4d64efe3c4c92cc03112b5b3e150829196b06"
                },
                {
                  "introduced": "8c75d0bf4a4190d94326f1a854d0a102ceca4392"
                },
                {
                  "fixed": "23b707e976d91b0e43abb14493c7782e8ff79187"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "5.1"
                      },
                      {
                        "fixed": "16.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "5.1"
                      },
                      {
                        "fixed": "16.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "17.0.0"
                      },
                      {
                        "fixed": "17.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "17.0.0"
                      },
                      {
                        "fixed": "17.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v17.0.1-rc42-ee",
            "v17.0.0-ee",
            "v16.10.6-rc42-ee",
            "v16.10.3-ee",
            "v16.10.0-ee",
            "v16.10.0-rc42-ee",
            "11-10-0cfa69752d8-74ffd66ae-ee",
            "11-10-0cfa69752d8-0d9531c80-ee",
            "11-10-119f9509d50-6d7537235-ee",
            "v7.3.0-ee",
            "v7.3.0.rc1-ee",
            "v7.2.0.rc5-ee",
            "v7.2.0.rc4-ee",
            "v7.2.0.rc3-ee",
            "v7.2.0.rc2-ee",
            "v7.2.0.rc1-ee",
            "v7.1.0-ee",
            "v7.1.0.rc1-ee",
            "v7.0.0-ee",
            "v6.8.0-ee",
            "v6.7.0-ee",
            "v6.7.0.rc1-ee",
            "v6.6.0-ee",
            "v6.5.0-ee",
            "v6.4.0-ee",
            "v6.3.1-ee",
            "v6.3.0-ee",
            "v6.1.0-ee",
            "v6.0.0-ee",
            "v6.0.0-ee.rc1",
            "v6.0.0-ee.beta",
            "v5.2.0",
            "v5.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4201.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.950372886Z",
      "provider": "osv",
      "references": [
        "https://about.gitlab.com/releases/2024/06/12/patch-release-gitlab-17-0-2-released/#xss-and-content-injection-when-viewing-raw-xhtml-files-on-ios-devices",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4201.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-4201",
        "https://gitlab.com/gitlab-org/gitlab/-/issues/458229",
        "https://hackerone.com/reports/2473886"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitLab",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4201.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-4201",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503242,
  "published_at": "2024-06-12T23:01:56.967+00:00"
}