CVE-2026-5816

Improper Resolution of Path Equivalence in GitLab

Published Apr 22, 2026 CVSS 3.1 · 8 High EPSS < 1% KEV · Not listed
Description
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.10 before 18.10.4 and 18.11 before 18.11.1 that could have allowed an unauthenticated user to execute arbitrary JavaScript in a user's browser session due to improper path validation under certain conditions.

Analysis

AI-generated

Technical impact

GitLab has a flaw that improperly resolves path equivalence, allowing an unauthenticated user to trigger arbitrary JavaScript execution within a target user’s browser session. The vulnerability is rooted in CWE‑41, Path Manipulation, and could be used to hijack sessions, steal credentials, or inject malicious content while the victim is logged into GitLab.

Affected Systems

The flaw impacts GitLab Community Edition and Enterprise Edition. All releases from 18.10.0 to 18.10.3 and the 18.11.0 release are affected. Versions 18.10.4, 18.11.1 and later contain the fix.

Risk and Exploitability

The CVSS score of 8 indicates a high severity level, though the EPSS score is not available, so the current exploit probability is unknown. Because the vulnerability is exploitable by unauthenticated users, an attacker can craft a request that bypasses path validation and deliver malicious JavaScript to any user who visits the targeted page. The vulnerability is not listed in CISA KEV and no public exploit has been reported at the time of this assessment. The likely attack vector is a crafted HTTP request that triggers the path conversion logic, and the impact is limited to the victims’ browser context but can be leveraged for social engineering or first‑party data theft.

Remediation

Vendor Solution

Upgrade to versions 18.10.4, 18.11.1 or above.


OpenCVE Recommended Actions

  • Upgrade GitLab to version 18.10.4, 18.11.1, or any later release that includes the path‑validation fix
  • If an upgrade is not yet possible, restrict access to the affected path or monitor inbound requests for patterns that resemble the known exploitation sequence
  • Enforce a strict Content Security Policy on the web interface to prevent arbitrary JavaScript execution and mitigate exploitation of the flaw while a patch is pending

Generated by OpenCVE AI on April 27, 2026 at 08:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:enterprise:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.10 before 18.10.4 and 18.11 before 18.11.1 that could have allowed an unauthenticated user to execute arbitrary JavaScript in a user's browser session due to improper path validation under certain conditions.
Title Improper Resolution of Path Equivalence in GitLab
First Time appeared Gitlab
Gitlab gitlab
Weaknesses CWE-41
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
Vendors & Products Gitlab
Gitlab gitlab
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-41

    Improper Resolution of Path Equivalence

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Apr 23, 2026, 3:56 AM
Reserved
Apr 8, 2026, 3:33 PM
Status
Analyzed
Published
Apr 22, 2026, 5:16 PM
Modified
Nov 11, 2026, 11:10 PM