CVE-2020-13340
GitLab vulnerability analysis and mitigation

Overview

A stored Cross-Site Scripting (XSS) vulnerability was discovered in GitLab affecting all versions prior to 13.2.10, 13.3.7, and 13.4.2. The vulnerability was specifically found in the CI Job Log functionality (GitLab Release, CVE Mitre).

Technical details

The vulnerability exists in the error message handling of build dependencies within GitLab's CI/CD pipeline system. The failure_message was incorrectly marked as safe without proper sanitization, allowing for the injection of malicious scripts. This vulnerability was particularly concerning for self-managed GitLab installations where dependencies validation is enabled by default (GitLab Issue).

Impact

The stored XSS vulnerability allows attackers to perform arbitrary actions on behalf of victims at the client side. The impact is particularly severe as it could potentially be triggered even in environments with Content Security Policy (CSP) in place through specific exploitation techniques (GitLab Issue).

Exploitability

The vulnerability can be exploited by creating a specific CI/CD pipeline configuration with manipulated build dependencies. When users view the job details of the affected pipeline, the malicious script would execute in their browser context (GitLab Issue).

Mitigation and workarounds

GitLab has addressed this vulnerability in versions 13.2.10, 13.3.7, and 13.4.2. Organizations are strongly recommended to upgrade to these versions or later to mitigate the risk. The fix involves proper sanitization of the failure_message in build dependencies (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-19478CRITICAL9.4
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 17, 2026
CVE-2026-10053HIGH8.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 23, 2026
CVE-2026-19650HIGH7.1
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 17, 2026
CVE-2026-6821MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-4879MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management