SecurityContext

CVE-2021-22242: GitLab CE/EE - Stored XSS

  • Cve: CVE-2021-22242
  • Name: GitLab CE/EE - Stored XSS
  • 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
  • Impact: Attackers can execute arbitrary scripts in victim's browser, leading to session hijacking or defacement.
  • Remediation: Update to the latest version of GitLab CE/EE where the vulnerability is fixed.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to store malicious markdown
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.63555
  • Epss percentile: 0.99224
  • Assignee: [email protected]
  • Published at: 2021-08-25T19:15:10Z
  • Age in days: 1917
  • Modified at: 2026-06-17T03:36:52Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22242
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Hackerone

  • Reports: 4
  • Rank: 2839

References

UrlSourceTags
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22242.jsonnvdVendor Advisory
https://hackerone.com/reports/1212822nvdPermissions Required, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gitlab:gitlab>= 14.1.0, < 14.1.2; >= 14.0.0, < 14.0.7; >= 11.4.0, < 13.12.9nonvd/v1/products/gitlab/gitlab

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 4
  • Exposed hosts: 66493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since