CVE-2025-9222

8.7

GitLab · GitLab CE/EE

GitLab CE/EE is vulnerable to stored cross-site scripting (XSS) via GitLab Flavored Markdown, allowing authenticated users to execute arbitrary scripts in the context of another user's session.

Executive summary

An authenticated stored cross-site scripting vulnerability in GitLab CE/EE allows attackers to execute malicious scripts, posing a significant risk to user session integrity.

Vulnerability

This is a stored cross-site scripting (XSS) vulnerability (CWE-79) triggered by improper neutralization of user-supplied input within GitLab Flavored Markdown. An authenticated user can inject malicious scripts that execute when viewed by other users.

Business impact

Successful exploitation of this XSS flaw allows an attacker to execute arbitrary JavaScript in the victim's browser, potentially leading to unauthorized actions, session hijacking, or sensitive data theft. With a CVSS score of 8.7, this is a high-severity risk that could compromise the integrity of internal development workflows and administrative accounts within the GitLab instance.

Remediation

Immediate Action: Update GitLab CE/EE instances to versions 18.5.5, 18.6.3, 18.7.1, or above to resolve the underlying input sanitization flaw.

Proactive Monitoring: Monitor audit and web access logs for unusual patterns, such as suspicious URLs or script tags embedded within Markdown content or issue comments.

Compensating Controls: Deploy a Web Application Firewall (WAF) with updated XSS filtering rules to detect and block malicious payloads submitted via the platform's Markdown rendering engine.

Exploitation status

Public Exploit Available: Yes, a published proof-of-concept exists via the referenced HackerOne report.

Analyst recommendation

Given the high CVSS score and the potential for session compromise, organizations should prioritize patching their GitLab environments. The ability for an authenticated user to perform stored XSS makes this a critical path for internal lateral movement or credential theft, necessitating an immediate upgrade to the specified patched versions.

More GitLab CVEs

Sources

Originally found and disclosed by Thanks [yvvdwf](https://hackerone.com/yvvdwf) for reporting this vulnerability through our HackerOne bug bounty program, per the CVE Program record.