CVE-2021-22242
8.7high
Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11.4 and up allows an attacker to exploit a stored cross-site s…
- Severity
- 8.7high CVSS:3.1 by GitLab
- Exploit likelihood
- 63.6% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitLab
- Also known as
- BIT-GITLAB-2021-22242
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
| Product or package | Versions | Reported by |
|---|---|---|
| GitLab GitLab | >=11.4, <13.12.9, >=14.0, <14.0.7, >=14.1, <14.1.2, from 11.4.0 before 13.12.9, from 14.0.0 before 14.0.7, from 14.1.0 before 14.1.2 | CVE List, NVD |
| gitlab (Bitnami) | from 11.4.0 before 13.12.9, from 14.0.0 before 14.0.7, from 14.1.0 before 14.1.2 | Bitnami Vulnerability Database |
All scores
| GitLab | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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
NVD (es)
Un saneo de entradas insuficiente en el markdown de Mermaid en GitLab CE/EE versión 11.4 y superiores, permite a un atacante explotar una vulnerabilidad de tipo cross-site scripting almacenado por medio de un markdown especialmente diseñado
References
| https://gitlab.com/gitlab-org/gitlab/-/issues/332528 | broken-link, web | |
| https://hackerone.com/reports/1212822 | advisory, permissions-required, third-party-advisory | |
| https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22242 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22242 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-22242 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITLAB-2021-22242 changed 2026-09-10 | Apache-2.0 |