{"id":"CVE-2021-22242","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-22242","generatedAt":"2026-10-27T22:33:47.496Z","title":"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","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","published":"2021-08-25T19:15:11.000Z","lastModified":"2026-06-17T03:36:52.000Z","status":"Modified","sourceIdentifier":"cve@gitlab.com","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"cwe":["CWE-79"],"affected":["gitlab/gitlab"],"epss":{"score":0.63555,"percentile":0.99207,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 63.6%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json","tags":["Vendor Advisory"],"source":"cve@gitlab.com"},{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/332528","tags":["Broken Link"],"source":"cve@gitlab.com"},{"url":"https://hackerone.com/reports/1212822","tags":["Permissions Required","Third Party Advisory"],"source":"cve@gitlab.com"},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/332528","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://hackerone.com/reports/1212822","tags":["Permissions Required","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22242","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}