CWE
79
Advisory Published
Updated

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

First published: Thu Aug 08 2024(Updated: )

A cross-site scripting issue has been discovered in GitLab affecting all versions starting from 5.1 prior 17.0.6, starting from 17.1 prior to 17.1.4, and starting from 17.2 prior to 17.2.2. When viewing an XML file in a repository in raw mode, it can be made to render as HTML if viewed under specific circumstances.

Credit: cve@gitlab.com

Affected SoftwareAffected VersionHow to fix
GitLab>=5.1.0<17.0.6
GitLab>=17.1.0<17.1.4

Remedy

Upgrade to versions 17.2.2, 17.1.4, 17.0.6 or above.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-4207?

    The severity of CVE-2024-4207 has been categorized as medium, due to the potential for cross-site scripting attacks.

  • How do I fix CVE-2024-4207?

    To fix CVE-2024-4207, upgrade your GitLab installation to version 17.0.6 or later, 17.1.4 or later, or 17.2.2 or later.

  • Which versions of GitLab are affected by CVE-2024-4207?

    CVE-2024-4207 affects all versions of GitLab starting from 5.1 before 17.0.6, starting from 17.1 before 17.1.4, and starting from 17.2 before 17.2.2.

  • What type of vulnerability is CVE-2024-4207?

    CVE-2024-4207 is a cross-site scripting (XSS) vulnerability allowing malicious scripts to be executed in the context of the user’s session.

  • Can CVE-2024-4207 be exploited remotely?

    Yes, CVE-2024-4207 can be exploited remotely by an attacker through the manipulation of XML file views in GitLab.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203