Cross-Site Scripting in webpack-bundle-analyzer
Versions of webpack-bundle-analyzer prior to 3.3.2 are vulnerable to Cross-Site Scripting. The package uses JSON.stringify() without properly escaping input which may lead to Cross-Site Scripting.
Recommendation
Upgrade to version 3.3.2 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | webpack-bundle-analyzer | < 3.3.2 | 3.3.2 |
References
- https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/263
- https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/264
- https://github.com/webpack-contrib/webpack-bundle-analyzer/commit/20f2b4c553ee343f491faf63e39427fba9908c7c
- https://snyk.io/vuln/SNYK-JS-WEBPACKBUNDLEANALYZER-174190
- https://www.npmjs.com/advisories/826
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-79- Platform
- npm
- Package
webpack-bundle-analyzer- Disclosed
- 23.05.2019
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-pgr8-jg6h-8gw6 - CC BY 4.0
Vulnerability history: webpack-bundle-analyzer
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.