CVE-2021-22242: XSS

Published Aug 25, 2021
·
Updated

Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11.4 and up allows an attacker to exploit a stored cross-site scripting vulnerability via a specially-crafted markdown

Affected Software

6 affected components
GitLab GitLab>=11.4.0<13.12.9
GitLab GitLab>=11.4.0<13.12.9
GitLab GitLab>=14.0.0<14.0.7
GitLab GitLab>=14.0.0<14.0.7
GitLab GitLab>=14.1.0<14.1.2
GitLab GitLab>=14.1.0<14.1.2

Event History

Aug 25, 2021
CVE Published
via MITRE·06:38 PM
Data Sourced
via MITRE·06:38 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-22242?

CVE-2021-22242 is classified as a medium severity vulnerability due to the potential for stored cross-site scripting attacks.

2

How do I fix CVE-2021-22242?

To fix CVE-2021-22242, you should upgrade GitLab to version 14.1.2, 14.0.7, or later versions.

3

Which versions of GitLab are affected by CVE-2021-22242?

CVE-2021-22242 affects GitLab CE/EE versions from 11.4.0 to 14.0.7.

4

What type of vulnerability is CVE-2021-22242?

CVE-2021-22242 is a stored cross-site scripting vulnerability stemming from insufficient input sanitization in Mermaid markdown.

5

Can CVE-2021-22242 allow for remote code execution?

No, CVE-2021-22242 is a cross-site scripting vulnerability and does not directly result in remote code execution.

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