Repository navigation
fix(deps): @iconify/tools 5.x override로 extract-zip 고위험 취약점 제거 - #144
Conversation
Dependabot 알림 #200 (GHSA-jmr9-qjv8-65gv, CVE-2026-56876, high): extract-zip은 패치 버전이 없어(취약 범위 <= 2.0.1 = 전 버전) 범프로 해결이 불가능하다. 대신 의존 경로인 astro-icon 1.1.5 → @iconify/tools ^4.0.5를 pnpm override로 5.x로 강제해 extract-zip을 트리에서 제거한다. @iconify/tools 5는 extract-zip·cheerio 의존을 자체적으로 걷어냈다. extract-zip이 사라지므로 PR #138에서 넣었던 auditConfig.ignoreGhsas 예외도 함께 삭제한다. override가 풀려 회귀하면 pnpm audit이 다시 잡아내도록 예외를 남기지 않는다. 검증: pnpm audit 취약점 0건(예외 없이), pnpm build 전체 체인 성공 (astro check 0 에러, 45페이지 pagefind 인덱싱), dist HTML에 아이콘 SVG 인라인 정상 렌더링 확인.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Review: fix(deps) — @iconify/tools 5.x override to remove extract-zipSolid, well-scoped fix. Summary of what I checked and my take on each review area below. Security ✅This is the security fix — Removing the now-dead Correctness / potential bugsThe major-version jump (4→5) risk is the main thing worth scrutinizing in a dependency PR like this, and it's well-mitigated:
Code quality
PerformanceNone — pure devDependency/transitive-tree change, no runtime code touched. Net effect is actually a slightly smaller Test coverageNo new tests, which is appropriate here — this is a dependency-swap PR, not a behavior change. The existing Nitpick (non-blocking)Nothing substantive to flag. One very minor observation: the tree now carries both Overall: clean, well-justified, appropriately verified. LGTM. |
|
리뷰 코멘트 처리 결과입니다. @claude[bot] 리뷰 (LGTM): 조치 요청 0건으로 확인했습니다. 유일한 참고 사항이었던 @chatgpt-codex-connector[bot]: Codex 사용량 한도 알림으로 리뷰 내용이 없어 조치 대상이 아닙니다. CI는 🤖 Addressed by Claude Code |
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
배경
Dependabot 알림 #200 —
extract-zip심볼릭 링크 경로 순회 취약점 (GHSA-jmr9-qjv8-65gv, CVE-2026-56876, high).핵심 제약: extract-zip은 패치 버전이 존재하지 않습니다 (
first_patched_version: null, 취약 범위<= 2.0.1= 전 버전, 마지막 배포 2023년). 버전 범프로는 해결이 불가능한 알림입니다. PR #138에서 로컬pnpm audit에 예외(auditConfig.ignoreGhsas)를 걸었지만, 이 설정은 GitHub Dependabot 알림에는 영향을 주지 않아 알림이 계속 열려 있었습니다.해결 방법
의존 경로는
astro-icon@1.1.5 → @iconify/tools@4.2.0 → extract-zip@2.0.1하나뿐입니다.@iconify/tools: ^4.0.5로 4.x에 고정 → 업스트림 범프 경로 없음."@iconify/tools": "^5.0.12")로 5.x를 강제해 extract-zip을 트리에서 통째로 제거합니다.이 PR이 main에 머지되면 lockfile에서 취약 패키지가 사라지므로 알림 #200은 자동으로 fixed 처리됩니다.
auditConfig 예외 삭제
extract-zip이 사라지므로 PR #138의
ignoreGhsas예외는 죽은 설정이 됩니다. 예외를 남겨두면 override가 실수로 풀려 extract-zip이 되돌아와도 audit이 침묵하므로, 회귀 시 즉시 빨간불이 켜지도록 예외를 함께 삭제했습니다.기존 overrides와의 충돌 여부
기존
yaml(^2.8.3)·nanoid(^3.3.18) override는 extract-zip 의존 경로와 무관 — 충돌 없음.Major 점프(4→5) 리스크
이 레포의
icon({ include })설정 경로는 @iconify/tools를 import하지 않습니다(로컬/커스텀 아이콘 컬렉션 로딩 전용, PR #138 분석). 실측으로도 검증했습니다:^5를 수용하면 override는 삭제 예정 (package.json//overrides주석에 명시)검증
pnpm audit(예외 없이)pnpm build전체 체인dist/index.html에<svg>4개)E2E는 CI의
Code standards & build게이트에서 실행됩니다.