# GHSA-pgr8-jg6h-8gw6: Cross-Site Scripting in webpack-bundle-analyzer

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-05-23T09:26:20.000Z
- Modified: 2021-08-04T15:26:36.000Z
- Weaknesses: CWE-79

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- webpack-bundle-analyzer (npm): before 3.3.2

## References

- <https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/263> (web)
- <https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/264> (web)
- <https://github.com/webpack-contrib/webpack-bundle-analyzer/commit/20f2b4c553ee343f491faf63e39427fba9908c7c> (web)
- <https://snyk.io/vuln/SNYK-JS-WEBPACKBUNDLEANALYZER-174190> (web)
- <https://www.npmjs.com/advisories/826> (web)

## Sources

- GitHub Advisory Database: [GHSA-pgr8-jg6h-8gw6](https://github.com/advisories/GHSA-pgr8-jg6h-8gw6), CC-BY-4.0, modified 2021-08-04

---

Page: https://cve.day/GHSA-pgr8-jg6h-8gw6 · Whole record: https://cve.day/GHSA-pgr8-jg6h-8gw6.json · Rebuilt by cve.day 2026-11-25T22:56:46.133Z
