{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-4201",
        "assignerOrgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
        "state": "PUBLISHED",
        "assignerShortName": "GitLab",
        "dateReserved": "2024-04-25T17:02:12.968Z",
        "datePublished": "2024-06-12T23:01:56.967Z",
        "dateUpdated": "2024-08-29T15:04:57.749Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "cpes": [
                        "cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "product": "GitLab",
                    "repo": "git://git@gitlab.com:gitlab-org/gitlab.git",
                    "vendor": "GitLab",
                    "versions": [
                        {
                            "lessThan": "16.10.7",
                            "status": "affected",
                            "version": "5.1",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "16.11.4",
                            "status": "affected",
                            "version": "16.11",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "17.0.2",
                            "status": "affected",
                            "version": "17.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Thanks [joaxcar](https://hackerone.com/joaxcar) for reporting this vulnerability through our HackerOne bug bounty program"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.4,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N",
                        "version": "3.1"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
                "shortName": "GitLab",
                "dateUpdated": "2024-08-29T15:04:57.749Z"
            },
            "references": [
                {
                    "name": "GitLab Issue #458229",
                    "tags": [
                        "issue-tracking",
                        "permissions-required"
                    ],
                    "url": "https://gitlab.com/gitlab-org/gitlab/-/issues/458229"
                },
                {
                    "name": "HackerOne Bug Bounty Report #2473886",
                    "tags": [
                        "technical-description",
                        "exploit",
                        "permissions-required"
                    ],
                    "url": "https://hackerone.com/reports/2473886"
                },
                {
                    "url": "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"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade to versions 16.10.7, 16.11.4, 17.0.2 or above."
                }
            ],
            "title": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab"
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-06-14T19:18:43.100514Z",
                                "id": "CVE-2024-4201",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-14T19:18:50.469Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T20:33:52.911Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://gitlab.com/gitlab-org/gitlab/-/issues/458229",
                        "name": "GitLab Issue #458229",
                        "tags": [
                            "issue-tracking",
                            "permissions-required",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://hackerone.com/reports/2473886",
                        "name": "HackerOne Bug Bounty Report #2473886",
                        "tags": [
                            "technical-description",
                            "exploit",
                            "permissions-required",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "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",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}