Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @dependencytrack/frontend
  4. ›
  5. CVE-2022-39350

CVE-2022-39350: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

October 25, 2022 (updated November 7, 2023)

@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 does 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.

References

  • docs.dependencytrack.org/changelog/
  • github.com/DependencyTrack/frontend/security/advisories/GHSA-c33w-pm52-mqvf
  • github.com/advisories/GHSA-c33w-pm52-mqvf
  • github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it)
  • nvd.nist.gov/vuln/detail/CVE-2022-39350

Code Behaviors & Features

Detect and mitigate CVE-2022-39350 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.6.1

Fixed versions

  • 4.6.1

Solution

Upgrade to version 4.6.1 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@dependencytrack/frontend/CVE-2022-39350.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.