fix(deps): resolve 4 moderate npm-audit GHSAs (TIM-14)#150
Conversation
Bump existing overrides and add two new ones to clear the four moderate advisories reported by the audit issue (TIM-14): - GHSA-jxxr-4gwj-5jf2 — brace-expansion ReDoS via numeric range. Bump 'minimatch>brace-expansion' from >=5.0.5 to >=5.0.6. (juliangruber/brace-expansion 5.0.5 -> 5.0.6) - GHSA-q8mj-m7cp-5q26 — qs.stringify DoS on null/undefined entries with arrayFormat:'comma' and encodeValuesOnly:true. Bump 'qs' from >=6.14.2 to >=6.15.2. (ljharb/qs 6.15.0 -> 6.15.2) - GHSA-qx2v-qp2m-jg93 — PostCSS XSS via unescaped </style> in stringified CSS. Add a top-level 'postcss' override >=8.5.10. (postcss 8.5.9 -> 8.5.15; direct dep already at 8.5.15, this pulls every transitive postcss-modules-* / @tailwindcss/postcss instance above the patched floor) - GHSA-w5hq-g745-h8pq — uuid v3/v5/v6 silent out-of-bounds write when a caller-supplied buffer is too small. Add a top-level 'uuid' override >=11.1.1. (uuid 8.3.2 -> 14.0.0; the consumer is @azure/msal-node, a transitive of the @vscode/vsce build tool which only runs at publish time and uses uuid v4, API-compatible with the override) Pattern mirrors the previous npm-audit fix in PR #144 (migrate overrides into pnpm-workspace.yaml, leave package.json untouched, regenerate the lockfile). Verification: - pnpm audit: the four target GHSAs are gone (11 -> 7 advisories; the remaining 7 are out of scope for this issue). - pnpm test: 201/201 pass (15 files, fast-check fuzz included). - pnpm lint: clean. - pnpm run compile: tsc clean. - pnpm run webpack: production bundle builds successfully.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughFour package version floors in ChangesDependency Override Bumps
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No React Doctor issues found. 🎉 Reviewed by React Doctor for commit |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #150 +/- ##
=======================================
Coverage 94.13% 94.13%
=======================================
Files 10 10
Lines 290 290
Branches 105 105
=======================================
Hits 273 273
Misses 1 1
Partials 16 16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🎉 This PR is included in version 1.2.46 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Resolves the 4 moderate advisories listed in the audit issue (TIM-14) by tightening two existing pnpm overrides and adding two new top-level ones. No source-code changes.
minimatch>brace-expansionto >=5.0.6qsto >=6.15.2postcssoverride >=8.5.10uuidoverride >=11.1.1Why pnpm overrides
All four advisories are in transitive dependencies (vsce>glob>minimatch>brace-expansion, vsce>typed-rest-client>qs, @tailwindcss/postcss>postcss, vsce>@azure/identity>@azure/msal-node>uuid), so the only safe path is to force the patched range from the workspace. Direct version bumps in the lockfile are reverted by
pnpm install.uuid@>=11.1.1is the only major-version jump. The consumer is @azure/msal-node, a transitive of @vscode/vsce (build/publish tool only, not bundled in the extension runtime). msal uses uuid v4; v4's public API is unchanged between uuid 8 and 14, and v14 is dual CJS/ESM, so the upgrade is API-compatible.Verification
pnpm audit: the four target GHSAs are gone. Total advisories 11 -> 7. The remaining 7 (vite, esbuild, js-yaml, @babel/core, form-data, etc.) are not in scope for this issue.pnpm test: 201/201 pass (15 files, fast-check property-based fuzz included).pnpm lint: clean.pnpm run compile: tsc clean.pnpm run webpack: production bundle builds successfully.Out of scope (7 remaining advisories)
vite (high, GHSA-fx2h-pf6j-xcff; moderate, GHSA-v6wh-96g9-6wx3), esbuild (low, GHSA-g7r4-m6w7-qqqr; high, GHSA-gv7w-rqvm-qjhr), js-yaml (moderate, GHSA-h67p-54hq-rp68), @babel/core (low, GHSA-4x5r-pxfx-6jf8), form-data (high, GHSA-hmw2-7cc7-3qxx). Each needs a separate audit/issue — they involve direct dep bumps (e.g. vite ^7.3.2 -> ^7.3.5) and were not in the scope of TIM-14.
Closes TIM-14.
Summary by CodeRabbit
qs,minimatch,postcss, anduuidto ensure compatibility and stability.