chore(deps): yaml の transitive 脆弱性を overrides で解消#112
Merged
Conversation
yaml-language-server (@astrojs/check 経由) が yaml 2.7.1 に依存して おり GHSA-48c2-rrv3-qjmp (Stack Overflow via deeply nested YAML collections, moderate) に該当していたため、package.json の overrides で yaml を ^2.8.3 に固定。 これにより npm audit の脆弱性は 7 件 -> 2 件に削減。残る 2 件は Astro v6 系への major bump (GHSA-j687-52p2-xcff / GHSA-xr5h-phrj-8vxv) が前提となるため、本 PR では対象外とし別途検討する。 astro check / build はいずれもエラーなし。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
frontend/package.jsonにoverridesを追加し、yaml-language-server経由で混入していたyaml@2.7.1を^2.8.3(ロック上は2.9.0) に固定。npm auditの検出数: 7 → 2 件残った 2 件(本 PR ではスコープ外)
いずれも Astro v6 系への major bump が前提のため別 PR で検討:
define:varsvia incomplete</script>tag sanitization (moderate)Dependabot の見え方について
GitHub UI 上は現時点で 33 alerts と表示されますが、ほとんどは
chore/frontend-deps-update(PR #111) のマージ前に発行された stale alert で、最新のfrontend/package-lock.json上では既に解消済みです。Dependabot の次回再スキャン後に自動クローズされる想定。Test plan
npm run check(astro check / TypeScript 型検査)— エラーなし、警告のみnpm run build(プロダクションビルド)— 成功 (5 page(s) built)npm auditの検出数 7 → 2 件を確認npm ci && npm run check && npm run buildでローカル再現