{"id":"CVE-2024-8312","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab","details":"An issue has been discovered in GitLab CE/EE affecting all versions from 15.10 before 17.3.6, 17.4 before 17.4.3, and 17.5 before 17.5.1. An attacker could inject HTML into the Global Search field on a diff view leading to XSS.","aliases":["BIT-gitlab-2024-8312"],"modified":"2026-04-10T05:19:50.388407Z","published":"2024-10-24T09:30:43.270Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json","cna_assigner":"GitLab"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8312"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/481819"},{"type":"REPORT","url":"https://hackerone.com/reports/2659386"},{"type":"PACKAGE","url":"git://git@gitlab.com:gitlab-org/gitlab.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"defe6e7f8821c58e67a2e909ef8d36463d76e7e8"},{"fixed":"cf36eeb39e6b055c08297149dc98ad1cc90248be"}],"database_specific":{"versions":[{"introduced":"15.10"},{"fixed":"17.3.6"}]}},{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"22193b3da887c1fa5e49021fa8f87b74e6539a7a"},{"fixed":"01e9777da9bce3d3e4cd9223c5b5fc5f1dec38e4"}],"database_specific":{"versions":[{"introduced":"17.4"},{"fixed":"17.4.3"}]}},{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"173959793c1163052d16c2158773ea9504aa712e"},{"fixed":"e4e13234b2da1da5a93791b06b425f36809bf4a6"}],"database_specific":{"versions":[{"introduced":"17.5"},{"fixed":"17.5.1"}]}}],"versions":["v17.4.0-ee","v17.4.1-rc10-ee","v17.5.0-ee"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8312.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"}]}