Skip to content

chore(deps): high 취약점 6건 해소 (nodemailer/vite/wrangler/ws/undici) - #67

Merged
mack-erel merged 1 commit into
mainfrom
chore/audit-fix-deps
Jul 1, 2026
Merged

chore(deps): high 취약점 6건 해소 (nodemailer/vite/wrangler/ws/undici)#67
mack-erel merged 1 commit into
mainfrom
chore/audit-fix-deps

Conversation

@mack-erel

Copy link
Copy Markdown
Owner

배경

CI의 Lint, Type Check & Build 잡이 bun audit --audit-level=high 스텝에서 high 취약점 6건으로 실패하고 있었습니다(#63main 대상 PR들이 공통으로 이 게이트에 막힘). 이 PR은 해당 취약점을 정리해 게이트를 통과시킵니다.

변경

패키지 변경 취약점
nodemailer ^8.0.7^9.0.3 (direct) raw 옵션 파일읽기/SSRF — GHSA-p6gq-j5cr-w38f
vite ^8.0.12^8.1.2 (direct) server.fs.deny 우회(Windows) — GHSA-fx2h-pf6j-xcff
wrangler ^4.90.0^4.106.0 (direct) miniflare 경유 undici → 7.28.0 패치 (TLS 검증 우회 등 3건)
overrides.ws ^8.21.0 신규 miniflare / @libsql 경유 전이 ws 메모리 고갈 DoS — GHSA-96hv-2xvq-fx4p

undiciwrangler 업으로 전이 해소되어 별도 override 불필요. ws는 miniflare·@libsql/hrana 양쪽에 전이 고정돼 있어 overrides로 일괄 상향(모두 8.x major 내라 안전).

검증

  • bun audit --audit-level=highhigh 0건 (ws→8.21.0, undici→7.28.0)
  • prettier --check + eslint clean
  • svelte-check → 1127 files, 0 errors / 0 warnings
  • vite build (adapter-cloudflare) 성공

nodemailer 사용부(src/lib/server/email.ts)는 createTransport/sendMail/close 뿐이며 문제의 raw 옵션을 쓰지 않아 9.x major 업 영향 없음.

후속

머지 후 #63(prettier bump)·#66(다중 DB 지원) 등을 rebase 하면 audit 게이트를 통과합니다.

🤖 Generated with Claude Code

bun audit --audit-level=high 로 걸리던 6개 high 취약점 정리:
- nodemailer ^8.0.7 → ^9.0.3 (raw 옵션 파일읽기/SSRF, GHSA-p6gq-j5cr-w38f)
- vite ^8.0.12 → ^8.1.2 (server.fs.deny 우회, GHSA-fx2h-pf6j-xcff)
- wrangler ^4.90.0 → ^4.106.0 (miniflare 경유 undici → 7.28.0 패치)
- overrides.ws ^8.21.0 (miniflare / @libsql 경유 전이 ws DoS, GHSA-96hv-2xvq-fx4p)

검증: bun audit high 0건, prettier+eslint clean, svelte-check 0 errors,
vite build(cloudflare) 성공. nodemailer 사용부는 createTransport/sendMail
뿐이라 9.x major 영향 없음(raw 옵션 미사용).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mack-erel
mack-erel merged commit 565ed3b into main Jul 1, 2026
6 checks passed
@mack-erel
mack-erel deleted the chore/audit-fix-deps branch July 1, 2026 15:23
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