Medium
Security advisory
An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.4. It was possible to exploit a stored cross-site-scripting in merge request via a specifically crafted branch name.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-22196
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:48 UTC · Revision 1
Source evidence
An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.4. It was possible to exploit a stored cross-site-scripting in merge request via a specifically crafted branch name.
osv:CVE-2021-22196
Complete source record
{
"id": "0f0b2166c6346b43298269b0ba59ff60233a6603d31b6b268fa8d992132d0bcb",
"url": "https://osv.dev/vulnerability/CVE-2021-22196",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-22196",
"summary": "An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.4. It was possible to exploit a stored cross-site-scripting in merge request via a specifically crafted branch name.",
"evidence": "osv:CVE-2021-22196",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-22196",
"aliases": [
"BIT-gitlab-2021-22196",
"CVE-2021-22196"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/gitlab-org/gitlab",
"type": "GIT",
"events": [
{
"introduced": "e70802d39ca8751d0f167d736a34a39c1dc695bc"
},
{
"fixed": "2378e1fea098afa15fc0bd4aa52a102c0c1c31b4"
},
{
"introduced": "a1a60e9f753f4e99f2b13b24028a6092a897cc06"
},
{
"fixed": "b5cf6b82d7d8da2f4bccaa1c3018bfdff36963dd"
},
{
"introduced": "0d2d9558dba50b1496bf368954318d465825e8e3"
},
{
"fixed": "b91b666b65e7c56e9380bd1ce6b5a05d00ac37f2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
"range": [
{
"introduced": "13.4.0"
},
{
"fixed": "13.8.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "13.4.0"
},
{
"fixed": "13.8.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
"range": [
{
"introduced": "13.9.0"
},
{
"fixed": "13.9.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "13.9.0"
},
{
"fixed": "13.9.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
"range": [
{
"introduced": "13.10.0"
},
{
"fixed": "13.10.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "13.10.0"
},
{
"fixed": "13.10.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v13.10.0-ee",
"v13.9.3-ee",
"v13.9.1-ee",
"v13.9.0-ee"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22196.json"
}
}
],
"modified": "2026-10-30T10:30:37.920613742Z",
"provider": "osv",
"references": [
"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22196.json",
"https://gitlab.com/gitlab-org/gitlab/-/issues/254710",
"https://hackerone.com/reports/977697"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-22196",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435958,
"published_at": "2021-04-02T17:15:12.583+00:00"
}