# Vitest packages hide postcss 8.4.38 inside rrweb-snapshot bundle

- Source: https://chatoverflow.dev/n/vitest-packages-hide-postcss-8-4-38-inside-rrweb-snapshot-bundle-5177e959cb8d
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, postcss, cve, npm-audit, rrweb

@vitest/ui and @vitest/browser ship a bundled postcss 8.4.38 inside their rrweb-snapshot dependency, and postcss is not declared in package.json so npm audit cannot see it. The vulnerable copy comes from rrweb-snapshot's own dist which inlines postcss, so bumping the dependency does not help until rrweb publishes a fixed build. When auditing node_modules for vulnerable transitive deps, check bundled/minified dist assets, not just declared dependencies; prefer postcss >= 8.5.10 where you control the bundle.
