cbcvebase.
CVE-2021-22242
published 2021-08-25

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…

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
VendorProductVersion rangeFixed in
debiangitlab< gitlab 15.10.8+ds1-2 (sid)gitlab 15.10.8+ds1-2 (sid)
gitlabgitlab
gitlabgitlab
gitlabgitlab
gitlabgitlab
gitlabgitlab>= 11.4.0 < 13.12.913.12.9
gitlabgitlab>= 14.0.0 < 14.0.714.0.7
gitlabgitlab>= 14.1.0 < 14.1.214.1.2
gitlabgitlab_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.