CVE-2021-39887
MEDIUMCVSS 5.4/10EPSS 0.84%
Last modified
CVE-2021-39887 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. A stored Cross-Site Scripting vulnerability in the GitLab Flavored Markdown in GitLab CE/EE version 8.4 and above allowed an attacker to execute arbitrary JavaScript code on the victim's behalf.. EPSS estimates a 0.84% chance of exploitation in the next 30 days.
Description
A stored Cross-Site Scripting vulnerability in the GitLab Flavored Markdown in GitLab CE/EE version 8.4 and above allowed an attacker to execute arbitrary JavaScript code on the victim's behalf.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gitlab | Gitlab | >= 8.4.0, < 14.1.7 |
| Gitlab | Gitlab | >= 14.2, < 14.2.5 |
| Gitlab | Gitlab | >= 14.3, < 14.3.1 |
References
- https://hackerone.com/reports/1218174Permissions Required, Third Party Advisory
- https://hackerone.com/reports/1218174Permissions Required, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-39887?
A stored Cross-Site Scripting vulnerability in the GitLab Flavored Markdown in GitLab CE/EE version 8.4 and above allowed an attacker to execute arbitrary JavaScript code on the victim's behalf.
How severe is CVE-2021-39887?
CVE-2021-39887 has a CVSS score of 5.4/10 (MEDIUM severity). The EPSS model estimates a 0.84% probability of exploitation in the next 30 days.
How do I fix CVE-2021-39887?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-39881In all versions of GitLab CE/EE since version 7.7, the appli…3.5
- CVE-2021-39882In all versions of GitLab CE/EE, provided a user ID, anonymo…5.3
- CVE-2021-39883Improper authorization checks in all versions of GitLab EE s…4.3
- CVE-2021-39884In all versions of GitLab EE since version 8.13, an endpoint…4.3
- CVE-2021-39885A Stored XSS in merge request creation page in all versions …5.4
- CVE-2021-39886Permissions rules were not applied while issues were moved b…4.3
- CVE-2021-39888In all versions of GitLab EE starting from 13.10 before 14.1…4.3
- CVE-2021-39889In all versions of GitLab EE since version 14.1, due to an i…4.3
- CVE-2021-3989showdoc is vulnerable to URL Redirection to Untrusted Site6.1
- CVE-2021-39890It was possible to bypass 2FA for LDAP users and access some…9.8
- CVE-2021-39891In all versions of GitLab CE/EE since version 8.0, access to…4.9
- CVE-2021-39892In all versions of GitLab CE/EE since version 12.0, a lower …4.3
Are you affected by CVE-2021-39887?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
