gitlab-ce is vulnerable to Cross-Site Scripting (XSS)
84
CVE Score
High
Cross-Site Scripting (XSS)
identity_mapping? in Gitlab::StringRangeMarker treats a syntax-highlighted line as a one-to-one copy of the raw line whenever the two strings have the same length. An already-safe highlighted line can contain markup of that same length, so a highlight range is written inside a tag and becomes an HTML attribute. A signed-in user can place that markup in a repository and run script in another user's browser when the highlighted file is viewed. The fix treats a line as a one-to-one mapping only when it also contains no markup characters.
Upgrade the gitlab-ce library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and users view syntax-highlighted repository files.
19.1.0 - 19.2.7
Fixed in 19.2.819.3.0 - 19.3.3
Fixed in 19.3.419.4.0 - 19.4.1
Fixed in 19.4.2gitlab-ce is vulnerable to Cross-Site Scripting (XSS) in versions 19.1.0 - 19.2.7, 19.3.0 - 19.3.3 and 19.4.0 - 19.4.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.