Skip to content

fix(deps): patch dev-tooling advisories (brace-expansion, wdm, fast-uri) - #245

Merged
xabierlameiro merged 1 commit into
masterfrom
fix/dev-deps-advisories
Oct 1, 2026
Merged

xabierlameiro merged 1 commit into
masterfrom
fix/dev-deps-advisories

Conversation

@xabierlameiro

Copy link
Copy Markdown
Owner

Summary

Fixes the Dependabot alerts that opened when #241 merged. All of them are dev-only (Storybook, jest, eslint, jsdoc), which is why audit:prod did not catch them.

Alert Package Change
#265 high, GHSA-g84c-rxfj-3j2c webpack-dev-middleware (Storybook) 6.1.3 → 8.3.0, scoped override under @storybook/builder-webpack5
#271, #272 medium, GHSA-q2hr-2g5m-vwhr brace-expansion overrides 1.1.18 → 1.1.21 and 5.0.9 → 5.0.12
#273 (auto-dismissed), GHSA-hrr3-gc8f-f4qj fast-uri 3.1.7 → 3.1.8 within range
#266 medium markdown-it already fixed on master by #243; the alert should close on rescan

Why the webpack-dev-middleware override

Storybook still pins ^6.1.2 in 10.6.1 and 11.0.0-alpha.1, and 6.x has no fix. The override does what storybookjs/storybook#36521 (open) does: it bumps to ^8.3.0 with no source changes. Our webpack 5.108.4 meets the ^5.101.0 peer. Drop the override once Storybook ships the bump.

Lockfile dev flags

About 70 webpack dependencies get dev: true back. #243's Dependabot regeneration ran without --legacy-peer-deps and removed it, so audit:prod was counting them as production. The count goes 1082 before #243, 1012 after it, and 1109 here; the extra 27 are memfs 4 and its dependencies.

Verification (local)

  • npm audit: none of the three advisories remain. Only the 6 low elliptic findings are left, already dismissed as tolerable risk.
  • npm run audit:prod: passes.
  • Lint, typecheck and jest (546 tests) pass.
  • storybook dev --smoke-test and storybook build pass.
  • Storybook dev server with middleware 8.3.0:
    • /iframe.html, /index.html and the main bundle return 200.
    • /..%2f..%2fpackage.json returns 403.

Dependabot alerts opened on the merge of #241, all dev-only:

- webpack-dev-middleware 6.1.3 -> 8.3.0 (GHSA-g84c-rxfj-3j2c, high),
  scoped override under @storybook/builder-webpack5. Storybook still
  pins ^6.1.2 (10.6.1 and 11.0.0-alpha.1) and 6.x has no fix; this
  mirrors storybookjs/storybook#36521, which bumps to ^8.3.0 with no
  source changes. Our webpack 5.108.4 meets the ^5.101.0 peer.
- brace-expansion overrides 1.1.18 -> 1.1.21 and 5.0.9 -> 5.0.12
  (GHSA-q2hr-2g5m-vwhr).
- fast-uri 3.1.7 -> 3.1.8 within range (GHSA-hrr3-gc8f-f4qj).

The lockfile also regains `dev: true` on ~70 webpack dependencies.
#243's Dependabot regeneration ran without --legacy-peer-deps and
dropped them, which made audit:prod count them as production.
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
the-last-dance Ready Ready Preview Oct 1, 2026 7:49pm UTC

@deepsource-io

deepsource-io Bot commented Oct 1, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in a50a8f6...7a7f5e0 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Oct 1, 2026 7:46p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@xabierlameiro
xabierlameiro merged commit e1ff884 into master Oct 1, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7a7f5e07 Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant