GitLab arbitrary JavaScript execution via syntax highlighting
CVE-2026-92883High
GitLab fails to properly sanitise HTML attributes in syntax-highlighted code output. An authenticated user can craft a malicious repository that executes arbitrary JavaScript in the browsers of other users who view the code. An attacker needs to be able to create or modify a repository and have other users view the syntax-highlighted content.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Detail
Weakness: CWE-79 (opens in a new tab)
Affected versions
- gitlab gitlab: from 19.1.0, before 19.2.8
- gitlab gitlab: from 19.3.0, before 19.3.5
- gitlab gitlab: from 19.4.0, before 19.4.2