gitlab-ce is vulnerable to Cross-Site Scripting (XSS)
84
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range and users view syntax-highlighted repository files.
gitlab-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.
Upgrade the gitlab-ce library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.