Cross-site Scripting (XSS) Affecting webpack-bundle-analyzer package, versions <3.3.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-WEBPACKBUNDLEANALYZER-174190
  • published15 Apr 2019
  • disclosed11 Apr 2019
  • creditYuriy Grunin

Introduced: 11 Apr 2019

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade webpack-bundle-analyzer to version 3.3.2 or higher.

Overview

webpack-bundle-analyzer is a package that can be used to create visual size of webpack output files with an interactive zoomable treemap.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to the usage of the JSON.stringify method which accepts server-rendered HTML and returns it as part of the chartData(),enableWebSocket() or defaultSizes() function.

Details

CVSS Scores

version 3.1