High
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-8312
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 09:03 UTC · Revision 1
Source evidence
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab
core-osv · Original sourcePublished 24 Oct 2024, 09:30 UTC
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.
osv:CVE-2024-8312
Complete source record
{
"id": "9e729808660dc06ed009377b05f2cc4873e8fec4e5e58f90bde4861b89b1f0ce",
"url": "https://osv.dev/vulnerability/CVE-2024-8312",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab",
"summary": "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.",
"evidence": "osv:CVE-2024-8312",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-8312",
"aliases": [
"BIT-gitlab-2024-8312",
"CVE-2024-8312"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/gitlab-org/gitlab",
"type": "GIT",
"events": [
{
"introduced": "defe6e7f8821c58e67a2e909ef8d36463d76e7e8"
},
{
"fixed": "cf36eeb39e6b055c08297149dc98ad1cc90248be"
},
{
"introduced": "22193b3da887c1fa5e49021fa8f87b74e6539a7a"
},
{
"fixed": "01e9777da9bce3d3e4cd9223c5b5fc5f1dec38e4"
},
{
"introduced": "173959793c1163052d16c2158773ea9504aa712e"
},
{
"last_affected": "173959793c1163052d16c2158773ea9504aa712e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
"range": [
{
"introduced": "15.10.0"
},
{
"fixed": "17.3.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "15.10.0"
},
{
"fixed": "17.3.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
"range": [
{
"introduced": "17.4.0"
},
{
"fixed": "17.4.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "17.4.0"
},
{
"fixed": "17.4.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:17.5.0:*:*:*:community:*:*:*",
"range": [
{
"introduced": "17.5.0"
},
{
"last_affected": "17.5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:17.5.0:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "17.5.0"
},
{
"last_affected": "17.5.0"
}
],
"source": "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"
}
}
],
"modified": "2026-10-28T02:30:34.307587897Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-8312",
"https://gitlab.com/gitlab-org/gitlab/-/issues/481819",
"https://hackerone.com/reports/2659386"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitLab",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json"
}
},
"related_cves": [
{
"value": "CVE-2024-8312",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 501300,
"published_at": "2024-10-24T09:30:43.27+00:00"
}