What’s Vulnerable › Vulnerabilities
CVE-2021-22242
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 63.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-08-25 · updated 2026-06-17
- Weakness: CWE-79
Description
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 products
- GitLab: from 11.4.0 before 13.12.9; from 14.0.0 before 14.0.7; from 14.1.0 before 14.1.2 — fixed in 13.12.9, 14.0.7, 14.1.2
How to fix
Upgrade to a fixed version: GitLab 13.12.9, 14.0.7, 14.1.2. Check the vendor advisory for mitigations.
References
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/332528
- https://hackerone.com/reports/1212822
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/332528
- https://hackerone.com/reports/1212822
Get alerted when CVE-2021-22242 or the next vulnerability affects your stack