-
fix(webpack): bump postcss-loader to ^8.2.1 to eliminate transitive yaml@1.x CVE (#35028)
发布于
2026-03-31 15:26:07 +00:00 Current Behavior
@nx/webpackdepends onpostcss-loader@^6.1.1, which pulls in
cosmiconfig@7→yaml@1.x. Theyaml@1.xpackage has a known stack
overflow vulnerability
(GHSA-48c2-rrv3-qjmp).Expected Behavior
By bumping
postcss-loaderto^8.2.1, the transitive dependency chain
is eliminated entirely —postcss-loader@8usescosmiconfig@9, which
no longer depends onyamlat all. This is a cleaner fix than applying
apnpm.overridesworkaround.The upgrade is safe because:
postcss-loader@8peer deps (postcss ^7||^8,webpack ^5) are
unchanged- The
implementationoption and function-basedpostcssOptionsAPI
used by@nx/webpackare fully supported in v8 - Nx already requires Node 18+, matching postcss-loader@8's engine
requirement
Related Issue(s)
Fixes #35025
下载附件