CVE-2022-3513
Published: 05 April 2023
Summary
CVE-2022-3513 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Gitlab Gitlab. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 3.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2022-3513 is a reflected cross-site scripting vulnerability (CWE-79) in GitLab. It affects all versions from 12.8 up to but not including 15.8.5, from 15.9 up to but not including 15.9.4, and from 15.10 up to but not including 15.10.1. A specially crafted payload can trigger client-side reflected XSS, enabling arbitrary actions on behalf of a victim when the instance is self-hosted and lacks a strict content security policy. The issue carries a CVSS 3.1 score of 6.1.
An unauthenticated attacker can deliver a malicious link or payload over the network that executes in a victim's browser upon interaction. Successful exploitation allows limited reading and modification of data within the victim's session on the affected GitLab instance, with the changed scope indicating impact beyond the vulnerable component itself.
Advisories note that the reflected XSS is blocked on self-hosted deployments that enforce a strict CSP. The EPSS score has remained near 0.27–0.28 with no material rise after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-42882
Vulnerability details
An issue has been discovered in GitLab affecting all versions starting from 12.8 before 15.8.5, all versions starting from 15.9 before 15.9.4, all versions starting from 15.10 before 15.10.1. A specially crafted payload could lead to a reflected XSS on…
more
the client side which allows attackers to perform arbitrary actions on behalf of victims on self-hosted instances running without strict CSP.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.