CVE-2021-22242
published 2021-08-25CVE-2021-22242: 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…
PriorityP343medium5.4CVSS 3.1
AVNACLPRLUIRSCCLILAN
EPSS
63.55%
99.1th percentile
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
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | gitlab | < gitlab 15.10.8+ds1-2 (sid) | gitlab 15.10.8+ds1-2 (sid) |
| gitlab | gitlab | — | — |
| gitlab | gitlab | — | — |
| gitlab | gitlab | — | — |
| gitlab | gitlab | — | — |
| gitlab | gitlab | >= 11.4.0 < 13.12.9 | 13.12.9 |
| gitlab | gitlab | >= 14.0.0 < 14.0.7 | 14.0.7 |
| gitlab | gitlab | >= 14.1.0 < 14.1.2 | 14.1.2 |
| gitlab | gitlab_ce | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Stored XSS via specially-crafted Mermaid markdown input in GitLab CE/EE; monitor for unsanitized Mermaid diagram blocks in GitLab markdown fields that contain JavaScript payloads or event handlers ↗
- ·Vulnerability affects GitLab CE/EE version 11.4 and up; Debian sid resolved the issue in version 15.10.8+ds1-2 ↗
CVSS provenance
nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvdv2.03.5LOWAV:N/AC:M/Au:S/C:N/I:P/A:N
osv5.4MEDIUM
vendor_debian8.7HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GitLab
CVE-2021-22242: 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 vu
vendor_gitlab·2021-08-25·CVSS 8.7
CVE-2021-22242 [HIGH] CWE-79 CVE-2021-22242: 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 vu
CVE-2021-22242: 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
Debian
CVE-2021-22242: gitlab - Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11.4...
vendor_debian·2021·CVSS 8.7
CVE-2021-22242 [HIGH] CVE-2021-22242: gitlab - Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11.4...
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
Scope: local
sid: resolved (fixed in 15.10.8+ds1-2)
GHSA
GHSA-3r2f-rpgw-83gm: Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11
ghsa_unreviewed·2022-05-24
CVE-2021-22242 [MEDIUM] CWE-79 GHSA-3r2f-rpgw-83gm: Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11
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
OSV
CVE-2021-22242: Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11
osv·2021-08-25·CVSS 5.4
CVE-2021-22242 [MEDIUM] CVE-2021-22242: Insufficient input sanitization in Mermaid markdown in GitLab CE/EE version 11
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
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.jsonhttps://gitlab.com/gitlab-org/gitlab/-/issues/332528https://hackerone.com/reports/1212822https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.jsonhttps://gitlab.com/gitlab-org/gitlab/-/issues/332528https://hackerone.com/reports/1212822
2021-08-25
Published