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

Published Jun 26, 2024
·
Updated

An issue was discovered in GitLab CE/EE affecting all versions starting from 16.9 prior to 16.11.5, starting from 17.0 prior to 17.0.3, and starting from 17.1 prior to 17.1.1, where a stored XSS vulnerability could be imported from a project with malicious commit notes.

Affected Software

7 affected componentsFixes available
GitLab GitLab>=16.9.0<16.11.5
GitLab GitLab>=16.9.0<16.11.5
GitLab GitLab>=17.0.0<17.0.3
GitLab GitLab>=17.0.0<17.0.3
GitLab GitLab=17.1.0
GitLab GitLab=17.1.0
GitLab GitLab>=16.9<16.11.5, >=17.0<17.0.3, >=17.1<17.1.1
16.11.517.0.317.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.11.5Fixed in 17.0.3Fixed in 17.1.1
  2. Upgrade

    Upgrade GitLab CE/EE to a version that resolves this vulnerability.

    Fixed in 17.1.1
  3. Upgrade

    Upgrade GitLab CE/EE to a version that resolves this vulnerability.

    Fixed in 17.0.3
  4. Upgrade

    Upgrade GitLab CE/EE to a version that resolves this vulnerability.

    Fixed in 16.11.5

Event History

Jun 26, 2024
CVE Published
via MITRE·11:31 PM
Data Sourced
via MITRE·11:31 PM
RemedyDescriptionSeverityWeakness
Jun 27, 2024
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2026
Data Sourced
via GitLab·08:52 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-4901?

CVE-2024-4901 is classified as a high-severity stored XSS vulnerability in GitLab.

2

How do I fix CVE-2024-4901?

To mitigate CVE-2024-4901, users should update their GitLab installation to version 16.11.5 or later, or 17.0.3 or later, or 17.1.1 or later.

3

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

CVE-2024-4901 affects all GitLab CE/EE versions from 16.9 before 16.11.5, 17.0 before 17.0.3, and 17.1 before 17.1.1.

4

What type of vulnerability is CVE-2024-4901?

CVE-2024-4901 is a stored cross-site scripting (XSS) vulnerability.

5

Can CVE-2024-4901 be exploited remotely?

Yes, CVE-2024-4901 can be exploited remotely through malicious commit notes imported from a project.

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