{"id":"CVE-2024-8312","aliases":["BIT-gitlab-2024-8312","EUVD-2024-49083","GHSA-8r4j-q2x9-54v8","UBUNTU-CVE-2024-8312"],"status":"published","title":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab","description":"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.","severity":{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00489,"percentile":0.42576,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2024-10-24T09:30:43Z","modified":"2026-10-28T02:30:34Z","fixes":[{"ecosystem":"Bitnami","package":"gitlab","fixed_in":["17.3.6","17.4.3","17.5.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"15.10.0"},{"fixed":"17.3.6"},{"introduced":"17.4.0"},{"fixed":"17.4.3"},{"introduced":"17.5.0"},{"fixed":"17.5.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"]}],"products":[{"vendor":"gitlab","product":"gitlab"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/481819","tags":["issue-tracking","permissions-required","Exploit","Issue Tracking","evidence","report"]},{"url":"https://hackerone.com/reports/2659386","tags":["technical-description","exploit","permissions-required","Permissions Required","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8312","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-8r4j-q2x9-54v8"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8312.json","tags":["advisory"]},{"url":"git://git@gitlab.com:gitlab-org/gitlab.git","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-8312","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-8312","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-8312","title":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab","description":"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.","status":"published","published":"2024-10-24T09:30:43.27Z","modified":"2024-10-24T12:57:20.551Z","cvss":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:09.216761Z"}],"euvd":[{"id":"EUVD-2024-49083","description":"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.","status":"published","published":"2024-10-24T09:30:43Z","modified":"2024-10-24T12:57:20Z","cvss":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-03T00:05:20.595169Z"}],"ghsa":[{"id":"GHSA-8r4j-q2x9-54v8","title":"An issue has been discovered in GitLab CE/EE affecting all versions from 15.10 before 17.3.6, 17...","description":"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.","status":"published","published":"2024-10-24T12:31:18Z","modified":"2024-10-24T12:31:25Z","cvss":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:58:35.380011Z"}],"nvd":[{"id":"CVE-2024-8312","description":"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.","status":"published","published":"2024-10-24T10:15:03.63Z","modified":"2026-06-17T08:22:20.37Z","cvss":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:10:33.928543Z"}],"osv":[{"id":"CVE-2024-8312","title":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab","description":"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.","status":"published","published":"2024-10-24T09:30:43.27Z","modified":"2026-10-28T02:30:34.307587897Z","cvss":[{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:45.405014Z"},{"id":"UBUNTU-CVE-2024-8312","description":"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.","status":"published","published":"2024-10-24T10:15:00Z","modified":"2025-10-24T05:06:46Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T16:55:18.664792Z"},{"id":"BIT-gitlab-2024-8312","title":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab","description":"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.","status":"published","published":"2024-10-26T07:10:33.009Z","modified":"2026-09-10T16:01:37.975881066Z","updated_at":"2026-11-02T15:28:30.70064Z"}]}}
