Skip to content

fix: 남은 Dependabot 보안 알림을 해결합니다#1009

Merged
jk-kim0 merged 1 commit into
mainfrom
security/dependabot-remaining-20260617
Jun 17, 2026
Merged

fix: 남은 Dependabot 보안 알림을 해결합니다#1009
jk-kim0 merged 1 commit into
mainfrom
security/dependabot-remaining-20260617

Conversation

@jk-kim0

@jk-kim0 jk-kim0 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

문제 현상

PR #1007 병합 후에도 GitHub Dependabot security alert 페이지에 11개 경고가 남아 있습니다.

대상 alert:

구현 내용

  • root override에서 @babel/core, dompurify, js-yaml, ws를 patched version 이상으로 고정했습니다.
  • scripts/website-analysis override에 js-yamlws patched version을 추가했습니다.
  • gray-matterjs-yaml@4와 호환되지 않아 제거하고, js-yaml@4.2.0 기반의 repo-local frontmatter parser로 대체했습니다.
  • normalizeMdxForLLM과 문서 검색 인덱스 parser가 새 frontmatter parser를 사용하도록 변경했습니다.

검증

  • npm install --package-lock-only --ignore-scripts (root)
  • npm install --package-lock-only --ignore-scripts (scripts/website-analysis)
  • npm ci --ignore-scripts (root)
  • npm audit --audit-level=low (root): 0 vulnerabilities
  • npm audit --audit-level=low (scripts/website-analysis): 0 vulnerabilities
  • patched-version lockfile check
  • frontmatter parse smoke
  • npm run test:run: 9 files / 91 tests passed
  • npm run lint
  • git diff --check

참고

단순히 gray-matter 하위 js-yaml4.2.0으로 강제하면 gray-matter가 제거된 yaml.safeLoad API를 호출해 기존 테스트가 실패했습니다. 그래서 gray-matter 의존성을 제거하고 필요한 frontmatter parsing만 직접 유지했습니다.

Replace gray-matter with a js-yaml 4 frontmatter parser so the repository can use patched js-yaml without breaking MDX search indexing, and pin the remaining vulnerable transitive packages reported by Dependabot.

Constraint: GitHub Dependabot still reports open alerts for @babel/core, dompurify, js-yaml, and website-analysis ws/js-yaml after PR #1007.

Rejected: Forcing js-yaml 4 under gray-matter | gray-matter calls removed yaml.safeLoad and fails existing tests.

Confidence: high

Scope-risk: moderate

Directive: Keep frontmatter parsing intentionally narrow unless MDX metadata requirements expand.

Tested: npm install --package-lock-only --ignore-scripts in root and scripts/website-analysis; npm ci --ignore-scripts in root; npm audit --audit-level=low in root and scripts/website-analysis; frontmatter parse smoke; npm run test:run; npm run lint; git diff --check.

Not-tested: full production build; PR CI pending.

Co-Authored-By: Atlas <atlas@jk.agent>
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
querypie-docs Ready Ready Preview, Comment Jun 17, 2026 8:24am

Request Review

@jk-kim0 jk-kim0 merged commit b08b1e3 into main Jun 17, 2026
5 checks passed
@jk-kim0 jk-kim0 deleted the security/dependabot-remaining-20260617 branch June 17, 2026 08:31
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