CVE-2021-39885
What it is
A Stored XSS in merge request creation page in all versions of Gitlab EE starting from 13.7 before 14.1.7, all versions starting from 14.2 before 14.2.5, and all versions starting from 14.3 before 14.3.1 allows an attacker to execute arbitrary JavaScript code on the victim's behalf via malicious approval rule names
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account, but needs a user to act. High risk of data exposure, data tampering.
- Exploit odds
- 1.1% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.1% in the next 30 days (EPSS).
- Severity: 8.7 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.1% · EPSS, next 30 days
- Weakness
- CWE-79 · Cross-site scripting
- Record status
- Modified
Affected
- GitLab < 14.1.7
- GitLab < 14.2.5
- GitLab 14.3.0
Attack profile CVSS 3.1 · 8.7
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-39885.md and follow it. Check whether this project is affected by CVE-2021-39885. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/341140
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/341140
References
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/341140
- https://hackerone.com/reports/1342009
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/341140
- https://hackerone.com/reports/1342009