{"id":"CVE-2024-4201","aliases":["CVE-2024-4201","BIT-GITLAB-2024-4201"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema de cross-site scripting en GitLab que afecta a todas las versiones desde 5.1 anteriores a 16.10.7, todas las versiones desde 16.11 anteriores a 16.111.4, todas las versiones desde 17.0 anteriores a 17.0.2. Al visualizar un archivo XML en un repositorio en modo sin formato, se puede hacer que se represente como HTML si se ve en circunstancias específicas.","source":"nvd"}],"published":"2024-06-12T23:01:56.967Z","modified":"2026-09-08T08:48:11.402Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"5.1","fixed":"16.10.7","status":"affected"},{"type":"semver","introduced":"16.11","fixed":"16.11.4","status":"affected"},{"type":"semver","introduced":"17.0","fixed":"17.0.2","status":"affected"}],"vendor":"GitLab","product":"GitLab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*","repo":"git://git@gitlab.com:gitlab-org/gitlab.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.1","fixed":"16.10.7"},{"status":"affected","introduced":"5.1","fixed":"16.10.7"},{"status":"affected","introduced":"16.11.0","fixed":"16.111.4"},{"status":"affected","introduced":"16.11.0","fixed":"16.111.4"},{"status":"affected","introduced":"17.0.0","fixed":"17.0.2"},{"status":"affected","introduced":"17.0.0","fixed":"17.0.2"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"16.10.7"},{"type":"semver","introduced":"16.11.0","status":"affected","fixed":"16.11.4"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.0.2"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/458229","tags":["advisory","issue-tracking","permissions-required","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://hackerone.com/reports/2473886","tags":["advisory","exploit","permissions-required","technical-description","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"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":["article","release-notes","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4201","tags":["web"],"sources":["bitnami"]}],"credits":["Thanks [joaxcar](https://hackerone.com/joaxcar) for reporting this vulnerability through our HackerOne bug bounty program"],"assigner":"GitLab","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-14T19:18:43.100Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-4201","url":"https://www.cve.org/CVERecord?id=CVE-2024-4201","licence":"CVE Terms of Use","modified":"2024-08-29T15:04:57.749Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-4201","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4201","licence":"Public domain","modified":"2026-06-17T08:01:19.180Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2024-4201","url":"https://osv.dev/vulnerability/BIT-GITLAB-2024-4201","licence":"Apache-2.0","modified":"2026-09-08T08:48:11.402Z"}],"updatedAt":"2026-11-25T22:58:41.765Z","epss":{"score":0.00483,"percentile":0.43237,"date":"2026-12-01T12:00:22.000Z"}}