Skip to content

chore(deps): resolve dev-only advisories through the lockfile - #84

Merged
htcom-code merged 1 commit into
mainfrom
chore/dev-advisory-lockfile
Oct 13, 2026
Merged

htcom-code merged 1 commit into
mainfrom
chore/dev-advisory-lockfile

Conversation

@htcom-code

Copy link
Copy Markdown
Owner

Why

Dependabot alerts, enabled 2026-10-13, opened 20 advisories (10 more were auto-dismissed). All of them are in development-only transitive packages. Nearly all come in through the shadcn CLI (via @modelcontextprotocol/sdk, ts-morph and others), which is used to pull components and never reaches the bundle. npm audit --omit=dev was already clean.

They still show as open critical/high alerts in the Security tab. Every one that has a patched release can be fixed inside the version ranges the parent packages already accept.

What

npm audit fix --package-lock-only. Only the lockfile changes: package.json is unchanged, with no overrides and no direct dependency bumps. This is the same approach as #30.

Package Before After
@modelcontextprotocol/sdk 1.30.0 1.32.1
hono 4.13.3 4.13.13
proxy-addr 2.0.7 2.0.8
fast-uri 3.1.6 3.1.8
ip-address 10.5.0 10.7.4
brace-expansion 5.0.9 5.0.12
postcss-selector-parser 7.1.5 7.1.6
qs 6.15.3 6.16.0
undici (shadcn's copy) 7.29.0 7.30.0

jsdom's own undici (8.11.2) is not touched.

What remains

One advisory: braces GHSA-vfj7-8cjw-p6xm, reached through shadcn → fast-glob → micromatch → braces. It has no patched version, and npm's only suggested fix is shadcn@1.0.0, a downgrade across three majors. Dependabot has already auto-dismissed it as a low-impact dev alert. npm audit goes from 16 findings (1 critical, 11 high, 4 moderate) to 7 high, and all 7 are this one advisory propagating up the chain.

Verification

  • npm ci, npm run lint (warnings only, same set as main), npm run build.
  • Bundle unchanged: dist/assets file names, which are content hashes, are identical to main.
  • npx shadcn --version still runs (4.21.4).
  • npm test: 245 tests. ⚠️ The trace-window scenario tests (holds one page…, drops evicted rows from a search result too, grows only by what the user loads) fail now and then under the full suite. This is not caused by this PR: the same tests failed 2 of 12 full runs on main and 3 of 12 on this branch, and each passes 5/5 in isolation. None of the changed packages are on the test path. This is tracked separately.

Dependabot alerts, enabled today, opened twenty advisories. All of
them sit in development-only transitive packages, nearly all under
the shadcn CLI. npm audit fix --package-lock-only moves nine of
those packages to patched versions inside the ranges their parents
already allow, so package.json is unchanged and no override is
needed.

One advisory remains: braces (GHSA-vfj7-8cjw-p6xm) has no patched
release, and npm's only suggested fix is a downgrade to shadcn 1.0.0.

Co-Authored-By: htjulia <htjulia1@gmail.com>
@htcom-code
htcom-code merged commit 45766b7 into main Oct 13, 2026
7 checks passed
@htcom-code
htcom-code deleted the chore/dev-advisory-lockfile branch October 13, 2026 05:25
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