CVE-2024-8179: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab
An issue has been discovered in GitLab CE/EE affecting all versions from 17.3 before 17.4.6, 17.5 before 17.5.4, and 17.6 before 17.6.2. Improper output encoding could lead to Cross Site Scripting (XSS) if Content Security Policy (CSP) is not enabled. This is a medium severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). It is now mitigated in the latest release and is assigned CVE-2024-8179.
Other sources
An issue has been discovered in GitLab CE/EE affecting all versions from 17.3 before 17.4.6, 17.5 before 17.5.4, and 17.6 before 17.6.2. Improper output encoding could lead to XSS if CSP is not enabled.
— MITRE
Affected Software
Remediation
Information
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is the severity of CVE-2024-8179?
CVE-2024-8179 is considered a medium severity vulnerability due to the risk of XSS attacks when CSP is not enabled.
How do I fix CVE-2024-8179?
To fix CVE-2024-8179, upgrade to GitLab CE/EE version 17.4.6, 17.5.4, or 17.6.2 or later.
Which versions of GitLab are affected by CVE-2024-8179?
CVE-2024-8179 affects GitLab CE/EE versions 17.3 before 17.4.6, 17.5 before 17.5.4, and 17.6 before 17.6.2.
What types of attacks can be executed due to CVE-2024-8179?
CVE-2024-8179 can allow attackers to execute cross-site scripting (XSS) attacks if content security policy (CSP) is not correctly implemented.
Is enabling content security policy (CSP) sufficient to mitigate CVE-2024-8179?
Enabling content security policy (CSP) helps mitigate CVE-2024-8179 but does not fully resolve the vulnerability; upgrading to a patched version is necessary.