CVE-2024-8312: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab

Published Oct 23, 2024
·
Updated

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.

Affected Software

7 affected componentsFixes available
GitLab GitLab>=15.10.0<17.3.6
GitLab GitLab>=15.10.0<17.3.6
GitLab GitLab>=17.4.0<17.4.3
GitLab GitLab>=17.4.0<17.4.3
GitLab GitLab=17.5.0
GitLab GitLab=17.5.0
GitLab GitLab>=15.10<17.3.6, >=17.4<17.4.3, >=17.5<17.5.1
17.3.617.4.317.5.1

Remediation

Information

Upgrade to versions 17.3.6, 17.4.3, 17.5.1 or above.

Event History

Oct 24, 2024
CVE Published
via MITRE·09:30 AM
Data Sourced
via MITRE·09:30 AM
RemedyDescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via GitLab·08:55 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-8312?

CVE-2024-8312 is considered a moderate severity vulnerability due to its potential for Cross-Site Scripting (XSS) attacks.

2

How do I fix CVE-2024-8312?

To fix CVE-2024-8312, upgrade to GitLab versions 17.3.6, 17.4.3, or 17.5.1 or later.

3

What types of attacks can exploit CVE-2024-8312?

CVE-2024-8312 can be exploited to perform XSS attacks through the Global Search field in the GitLab diff view.

4

Which versions of GitLab are affected by CVE-2024-8312?

CVE-2024-8312 affects GitLab CE/EE versions from 15.10 before 17.3.6, 17.4 before 17.4.3, and 17.5 before 17.5.1.

5

What should users of GitLab do regarding CVE-2024-8312?

Users of GitLab should immediately upgrade their installations to the patched versions to mitigate the risk posed by CVE-2024-8312.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203