CVE-2022-39350: Dependency-Track - Stored XSS
- Cve: CVE-2022-39350
- Name: Dependency-Track - Stored XSS
- Description: @dependencytrack/frontend is a Single Page Application (SPA) used in Dependency-Track, an open source Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain. Due to the common practice of providing vulnerability details in markdown format, the Dependency-Track frontend renders them using the JavaScript library Showdown. Showdown does not have any XSS countermeasures built in, and versions before 4.6.1 of the Dependency-Track frontend did not encode or sanitize Showdown's output. This made it possible for arbitrary JavaScript included in vulnerability details via HTML attributes to be executed in context of the frontend. Actors with the `VULNERABILITY_MANAGEMENT` permission can exploit this weakness by creating or editing a custom vulnerability and providing XSS payloads in any of the following fields: Description, Details, Recommendation, or References. The payload will be executed for users with the `VIEW_PORTFOLIO` permission when browsing to the modified vulnerability's page. Alternatively, malicious JavaScript could be introduced via any of the vulnerability databases mirrored by Dependency-Track. However, this attack vector is highly unlikely, and the maintainers of Dependency-Track are not aware of any occurrence of this happening. Note that the `Vulnerability Details` element of the `Audit Vulnerabilities` tab in the project view is not affected. The issue has been fixed in frontend version 4.6.1.
- Impact: Attackers can execute arbitrary JavaScript in the context of the frontend, potentially leading to session hijacking or malicious actions on behalf of users.
- Remediation: Update Dependency-Track frontend to version 4.6.1 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: admin_privileges
- Requirements: Attacker needs permission to create or edit vulnerabilities
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00905
- Epss percentile: 0.60555
- Assignee: [email protected]
- Published at: 2022-10-25T17:15:56Z
- Age in days: 1491
- Modified at: 2026-06-17T04:58:11Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39350
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://docs.dependencytrack.org/changelog/ | Release Notes, Third Party Advisory |
| https://github.com/DependencyTrack/frontend/security/advisories/GHSA-c33w-pm52-mqvf | Third Party Advisory |
| https://github.com/showdownjs/showdown/wiki/Markdown%27s-XSS-Vulnerability-%28and-how-to-mitigate-it%29 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| owasp:dependency-track_frontend | < 4.6.1 | no | nvd | /v1/products/owasp/dependency-track_frontend |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| DependencyTrack/frontend | package, security_advisory | yes | /v1/repositories/DependencyTrack/frontend |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts