Skip to content

chore: 의존성 보안 취약점 정리 및 버전 업그레이드 - #151

Merged
tnals0924 merged 2 commits into
mainfrom
chore/deps-security-upgrade
Sep 21, 2026
Merged

tnals0924 merged 2 commits into
mainfrom
chore/deps-security-upgrade

Conversation

@tnals0924

Copy link
Copy Markdown
Member

개요

Dependabot 취약점 대응을 위한 의존성 정리 및 버전 업그레이드입니다.
로컬 yarn audit 기준 취약점 200건 → 53건으로 감소했고, 런타임 critical/high 취약점은 모두 해결했습니다.

변경 내용

미사용 의존성 제거

  • next-auth — import·config·middleware·auth route 전부 없음 (미사용)
  • react-router-dom — Next.js 앱이라 미사용
  • shadcn-ui — CLI가 dependencies에 잘못 포함됨 (런타임 import 없음)

버전 업그레이드

  • axios ^1.7.9 → ^1.18.0 (axios 자체 CVE 대응)
  • swiper ^11.2.4 → ^12.1.2 (프로토타입 오염 대응)
  • lodash ^4.17.21 → ^4.17.23
  • postcss ^8.4.38 → ^8.5.23

resolutions 추가 (transitive 취약점 정리)

  • websocket-driver ^0.7.5 — firebase Realtime DB의 critical 2건 포함 런타임 취약점 대응 ⭐
  • @grpc/grpc-js 1.9.16, protobufjs ^7.6.3, fast-uri ^3.1.6, nanoid ^3.3.18, postcss ^8.5.23
  • @types/minimatch 5.1.2 고정 — lockfile 재생성 시 6.0.0 stub으로 드리프트되는 타입 회귀 방지

남은 취약점 (53건)

전부 next-pwa → workbox-build/webpack-plugin 빌드타임 툴체인(minimatch·brace-expansion·babel ReDoS 등)과 @testing-library(테스트 전용)입니다. 실제 배포물·서버 런타임에는 영향 없음.

  • @ducanh2912/next-pwa로 교체 시도했으나 workbox 7이 @babel/preset-env를 더 끌고 와 오히려 91건으로 증가 → 원복
  • 완전 제거하려면 workbox 미사용인 @serwist/next 마이그레이션 필요 (별도 진행)

검증

  • ✅ tsc --noEmit 통과
  • ✅ next build 통과 (18개 페이지 정상 생성, swiper 캐러셀 포함 /mobile/main 정상)

🤖 Generated with Claude Code

- 미사용 의존성 제거: next-auth, react-router-dom, shadcn-ui
- 버전 업그레이드: axios ^1.18.0, swiper ^12.1.2, lodash ^4.17.23, postcss ^8.5.23
- resolutions 추가로 transitive 취약점 정리
  - websocket-driver ^0.7.5: firebase Realtime DB의 critical 취약점 대응
  - @grpc/grpc-js 1.9.16, protobufjs ^7.6.3, fast-uri ^3.1.6, nanoid ^3.3.18, postcss ^8.5.23
  - @types/minimatch 5.1.2 고정 (6.0.0 stub 회귀 방지)

취약점 200건 → 53건 (남은 건 전부 next-pwa/workbox 빌드타임 툴체인)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
frontend Ready Ready Preview Sep 21, 2026 2:48pm UTC

@github-actions github-actions Bot added the 📦 CHORE 빌드 테스트 업데이트, 패키지 매니저를 설정하는 경우, 주석 추가, 자잘한 문서 수정 label Sep 21, 2026
@tnals0924 tnals0924 self-assigned this Sep 21, 2026
@tnals0924
tnals0924 merged commit 01b4cf2 into main Sep 21, 2026
2 checks passed

This branch was successfully deployed

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

Labels

📦 CHORE 빌드 테스트 업데이트, 패키지 매니저를 설정하는 경우, 주석 추가, 자잘한 문서 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant