CVE-2025-0475 Details
Description
An issue has been discovered in GitLab CE/EE affecting all versions from 15.10 prior to 17.7.6, 17.8 prior to 17.8.4, and 17.9 prior to 17.9.1. A proxy feature could potentially allow unintended content rendering leading to XSS under specific circumstances.
A cross-site scripting (XSS) vulnerability has been identified in GitLab Community Edition (CE) and Enterprise Edition (EE) versions 15.10 prior to 17.7.6, 17.8 prior to 17.8.4, and 17.9 prior to 17.9.1. The issue arises from the Kubernetes proxy endpoint, which fails to properly validate the 'Content-Type' header in responses. This oversight allows browsers to perform MIME sniffing and potentially render content as HTML, creating an XSS risk. Although the endpoint typically requires a CSRF token for protection, this can be bypassed on self-hosted instances under certain conditions, such as when the response includes a 'Cache-Control: max-age=604800' header, allowing the cached response to be served without the token.
This vulnerability has been fixed in GitLab versions 17.9.1 and 17.8.4. Users should upgrade to these versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitlab.com/gitlab-org/gitlab/-/issues/513142 | [email protected] | Broken Link |
| https://hackerone.com/reports/2932309 | [email protected] | Permissions Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitlab gitlab | >= 15.10.0, < 17.7.6 >= 17.8.0, < 17.8.4 17.9.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 7, 2025 | Initial Analysis | [email protected] |
| Mar 3, 2025 | New CVE Received | [email protected] |