CVE-2021-39885: XSS

Published Oct 4, 2021
·
Updated

A Stored XSS in merge request creation page in all versions of Gitlab EE starting from 13.7 before 14.1.7, all versions starting from 14.2 before 14.2.5, and all versions starting from 14.3 before 14.3.1 allows an attacker to execute arbitrary JavaScript code on the victim's behalf via malicious approval rule names

Affected Software

3 affected components
GitLab GitLab>=13.7.0<14.1.7
GitLab GitLab>=14.2.0<14.2.5
GitLab GitLab=14.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GitLab EE to a version that resolves this vulnerability.

    Fixed in 14.1.7
  2. Upgrade

    Upgrade GitLab EE to a version that resolves this vulnerability.

    Fixed in 14.2.5
  3. Upgrade

    Upgrade GitLab EE to a version that resolves this vulnerability.

    Fixed in 14.3.1

Event History

Oct 4, 2021
CVE Published
via MITRE·04:33 PM
Data Sourced
via MITRE·04:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-39885?

CVE-2021-39885 has a medium severity rating due to its potential for stored cross-site scripting (XSS) attacks.

2

How do I fix CVE-2021-39885?

To fix CVE-2021-39885, update your GitLab EE installation to version 14.1.7 or 14.2.5 and later.

3

What versions of GitLab are affected by CVE-2021-39885?

CVE-2021-39885 affects GitLab EE versions starting from 13.7 before 14.1.7, from 14.2 before 14.2.5, and from 14.3 before 14.3.1.

4

What kind of attack can occur due to CVE-2021-39885?

CVE-2021-39885 allows an attacker to execute arbitrary JavaScript code via a stored XSS vulnerability.

5

Is user data at risk due to CVE-2021-39885?

Yes, CVE-2021-39885 exposes user data to potential theft or manipulation due to the stored XSS vulnerability.

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