{"id":"CVE-2021-22242","details":"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","aliases":["BIT-gitlab-2021-22242"],"modified":"2026-08-27T19:34:00.403974Z","published":"2021-08-25T19:15:10.750Z","references":[{"type":"ADVISORY","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.json"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/332528"},{"type":"REPORT","url":"https://hackerone.com/reports/1212822"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"cfe266cbac3c5d413e9c061fff420630e517005f"},{"fixed":"cdec15d2a57e0e91df125713022bf18a9878edae"},{"introduced":"0034acfc891b0cbc2ecc4aa4c5ca0d1f89e3c32f"},{"fixed":"2124823be81f07274ec34739351f84565c7064bb"},{"introduced":"e4567ef4362f4ef24a09112564b31dfe9044ea12"},{"fixed":"0bf9b154ab444113db7b13c8d6c6ae856d7893e6"}],"database_specific":{"cpe":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*"],"extracted_events":[{"introduced":"11.4.0"},{"fixed":"13.12.9"},{"introduced":"14.0.0"},{"fixed":"14.0.7"},{"introduced":"14.1.0"},{"fixed":"14.1.2"}],"source":"CPE_RANGE"}}],"versions":["v14.0.5-ee","v14.1.1-ee","v14.1.0-ee","v14.0.6-ee","v14.0.3-ee","v14.0.1-ee","v14.0.0-ee"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22242.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}