본문으로 건너뛰기
cccskills
무료GitHub에 공개

cve-remediation

Dependency vulnerability remediation workflow for this repository. Use when fixing CVE, BDSA, GHSA, OSV, npm, PyPI, Dependabot, Black Duck, Snyk, or other package vulnerability findings, especially when the user asks for minimal package-only updates, validation, commits, branches, or pull requests.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

CVE Remediation

Use this skill to remediate dependency vulnerabilities with minimal, evidence-backed package changes.

Operating Rules

  1. Read AGENTS.md and relevant repo Codex skills before editing.
  2. Read scoped AGENTS.md and required docs for affected components, especially src/apps_sdk/AGENTS.md for Apps SDK widget work.
  3. Start from git status -sb; do not mix remediation into an unrelated dirty worktree or stale branch.
  4. Prefer package manifest and lockfile changes only. Do not change source code unless no compatible package-only fix exists.
  5. Keep the affected-library scope tight. Do not opportunistically upgrade unrelated dependencies.
  6. Never hand-edit generated lockfiles. Regenerate them with the package manager.

Identify Scope

Map the finding to the owning workspace and package manager:

  • Root backend: pyproject.toml, uv.lock
  • Agents: src/agents/pyproject.toml, src/agents/uv.lock
  • Demo UI: src/ui/package.json, src/ui/pnpm-lock.yaml
  • Apps SDK widget: src/apps_sdk/web/package.json, src/apps_sdk/web/pnpm-lock.yaml

Use rg, pnpm list, pnpm why, uv tree, and lockfile searches to find all resolved copies of the vulnerable package.

Verify Advisory Data

Treat scanner output as the starting signal, not the complete fix plan.

  1. Verify affected and fixed versions using public or primary sources where possible:
    • OSV API
    • GitHub Security Advisories
    • npm or PyPI registry metadata
    • official release notes or changelogs
  2. Query exact candidate versions before introducing them.
  3. Do not assume "newest" is safe; newer versions can have different advisories or compatibility issues.
  4. If BDSA or commercial scanner details are not public, say that explicitly and use public advisory plus registry evidence.
  5. Avoid full pnpm audit or equivalent external audit uploads unless the user explicitly approves sharing the workspace dependency graph. Prefer per-package OSV queries for exact packages and versions.

Example OSV querybatch pattern:

curl -sS -X POST https://api.osv.dev/v1/querybatch \
  -H 'Content-Type: application/json' \
  -d '{"queries":[{"version":"VERSION","package":{"name":"PACKAGE","ecosystem":"npm"}}]}'

Choose the Fix

  1. Choose the smallest safe compatible version that clears the finding.
  2. For direct dependencies, update the manifest range and regenerate the lockfile.
  3. For transitive dependencies, prefer the parent package's compatible update when an override causes build or runtime failures.
  4. Use overrides only when they are compatible, tested, and clearly scoped.
  5. If a candidate fails validation, try the next safe package-only path and document why the failed candidate was rejected.
  6. If no safe package-only path exists, stop and explain the tradeoff before changing source code.

Apply Package Updates

For pnpm workspaces:

pnpm install --lockfile-only
pnpm install --frozen-lockfile

For uv workspaces:

uv lock --upgrade-package PACKAGE

Use the repo's existing dependency style: keep existing overrides, package managers, and version range conventions unless the advisory requires a different approach.

Prove the Vulnerable Version Is Gone

After regenerating locks, verify both absence and final resolution:

rg -n 'VULNERABLE_VERSION|package@VULNERABLE_VERSION|package: VULNERABLE_VERSION' <changed package and lock files>
pnpm list PACKAGE --depth 10
pnpm why PACKAGE
uv tree | rg 'PACKAGE|VULNERABLE_VERSION'

For pnpm, remember pnpm why may return no output when a package is only an optional peer or no longer installed. Pair it with lockfile scans and pnpm list.

Validate

Run affected CI parity checks. Broaden when shared tooling or lockfiles affect multiple areas.

Frontend UI (src/ui):

pnpm lint
pnpm format:check
pnpm typecheck
pnpm test:run

Apps SDK widget (src/apps_sdk/web):

pnpm lint
pnpm typecheck
pnpm test:run
pnpm build

Backend:

uv run ruff check src/merchant/ src/payment/ src/apps_sdk/ tests/
uv run ruff format --check src/merchant/ src/payment/ src/apps_sdk/ tests/
uv run pyright src/merchant/ src/payment/ src/apps_sdk/
uv run pytest tests/ -v --tb=short

Always run:

git diff --check

Browser or runtime verification is only required when runtime behavior, API behavior, UI behavior, or integration flow changes. Package-only build tool changes still need build and test evidence.

Git and PR

  1. Create or switch to a codex/ branch based on current origin/main unless the user directs otherwise.
  2. Stage only intended package manifests and lockfiles.
  3. Commit with a dependency-focused message.
  4. Push and open a PR when requested.
  5. PR body must include:
    • summary of package changes
    • advisory/version evidence
    • exact tests and outcomes
    • any skipped checks and why
    • scanner identifier when available

Before final response, run git status -sb and report the branch, commit, PR URL, tests, and any residual warnings.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Discoverability shim for the Retail-Agentic-Commerce CVE remediation Codex skill. Use for CVE, BDSA, GHSA, OSV, Dependabot, Black Duck, Snyk, npm, PyPI, or package advisory remediation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

features

무료

Python backend development standards for FastAPI, SQLModel, pytest, Ruff, and Pyright. Use when writing or modifying backend code in src/merchant, src/payment, src/apps_sdk, agents, tests, API routes, services, models, or protocol logic.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

features

무료

Discoverability shim for the Retail-Agentic-Commerce backend feature Codex skill. Use when writing or modifying Python backend code, routes, services, models, tests, or protocol logic.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

Pre-commit implementation analysis for Retail-Agentic-Commerce. Use before commits, after significant changes, or when validating Apps SDK tools, mock data, MCP communication, widget isolation, or implementation quality.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

Discoverability shim for the Retail-Agentic-Commerce pre-commit analysis Codex skill. Use before commits, after significant changes, or for implementation-quality validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

setup

무료

Launch all services for the Retail-Agentic-Commerce project. Use when the user types setup, install, or asks to start, launch, or run the project stack.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA-AI-Blueprints/Retail-Agentic-Commerce812026년 10월 15일 업데이트

NVIDIA-AI-Blueprints의 스킬 모두 보기

이 스킬의 문제 신고