{"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-08-23T06:38:20.677255258Z","published":"2024-10-24T09:30:43.270Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json","cna_assigner":"GitLab","cwe_ids":["CWE-79"]},"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"},{"introduced":"22193b3da887c1fa5e49021fa8f87b74e6539a7a"},{"fixed":"01e9777da9bce3d3e4cd9223c5b5fc5f1dec38e4"},{"introduced":"173959793c1163052d16c2158773ea9504aa712e"},{"last_affected":"173959793c1163052d16c2158773ea9504aa712e"}],"database_specific":{"cpe":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*","cpe:2.3:a:gitlab:gitlab:17.5.0:*:*:*:community:*:*:*","cpe:2.3:a:gitlab:gitlab:17.5.0:*:*:*:enterprise:*:*:*"],"extracted_events":[{"introduced":"15.10.0"},{"fixed":"17.3.6"},{"introduced":"17.4.0"},{"fixed":"17.4.3"},{"introduced":"17.5.0"},{"last_affected":"17.5.0"}],"source":["CPE_RANGE","CPE_STRING"]}}],"versions":["17.5.0","v17.5.0-ee","v17.4.1-rc10-ee","v17.4.0-ee"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8312.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"}]}