Skip to content

Move shadcn CLI to devDependencies - #40

Merged
zsmithnyc merged 1 commit into
mainfrom
security/shadcn-dev-dependency
Nov 27, 2026
Merged

zsmithnyc merged 1 commit into
mainfrom
security/shadcn-dev-dependency

Conversation

@zsmithnyc

Copy link
Copy Markdown
Collaborator

Summary

  • shadcn is a component-scaffolding CLI (used via npx shadcn add ...) and is never imported by app code, but it was listed in dependencies.
  • That caused npm audit --omit=dev to flag its ts-morph → @ts-morph/common → minimatch chain (moderate ReDoS, GHSA-g3hv-75wg-m249) as a production vulnerability.
  • Moved shadcn to devDependencies. Production npm audit is now clean (0 vulnerabilities).

Test plan

  • npm install
  • npm run build succeeds
  • npm audit --omit=dev reports 0 vulnerabilities

🤖 Generated with Claude Code

It's a scaffolding tool never imported by app code, but living in
dependencies made its ts-morph/minimatch chain (moderate ReDoS,
GHSA-g3hv-75wg-m249) show up as a production vulnerability. Production
npm audit is now clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@zsmithnyc
zsmithnyc force-pushed the security/shadcn-dev-dependency branch from e6e7b55 to 5f1eb2d Compare November 27, 2026 13:00
@zsmithnyc
zsmithnyc merged commit b295d45 into main Nov 27, 2026
3 checks passed
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