Skip to content

chore: resolve Dependabot security alerts - 2026-08-07 - #875

Merged
jennifer-takagi merged 2 commits into
mainfrom
ktlo/dependabot-nanoid-2026-08-07
Aug 10, 2026
Merged

chore: resolve Dependabot security alerts - 2026-08-07#875
jennifer-takagi merged 2 commits into
mainfrom
ktlo/dependabot-nanoid-2026-08-07

Conversation

@jennifer-takagi

Copy link
Copy Markdown
Collaborator

Summary

  • Bumped transitive nanoid 3.3.163.3.18 (via postcss 8.5.208.5.25, under vite/vitest) to resolve GHSA-2v37-7h3g-55p8 — "custom generators can loop indefinitely when size is zero" (infinite-loop DoS, high). Vulnerable <3.3.17, patched 3.3.17; landed on 3.3.18 within the 3.x CJS line.
  • Applied via npm update nanoid — lockfile-only change, no package.json edits and no override needed.

Audit delta

Severity Before After
Critical 0 0
High 3 2
Moderate 0 0
Low 0 0
Total 3 2
  • Resolved: nanoid (high).
  • Out of scope (remain open, separate alerts): brace-expansion (high), minimatch (high).

Coordinated PRs

Verification

  • npm run check (biome) — passed, no fixes applied
  • npm run typecheck (tsc --noEmit) — passed
  • npm run build (tsc) — passed
  • npm test (vitest run --coverage) — 14 passed / 3 files
  • Husky pre-commit (lint-staged + vitest run) — passed on commit
  • npm audit: nanoid advisory no longer present after fix

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

jennifer-takagi and others added 2 commits August 10, 2026 05:28
Bump transitive nanoid 3.3.16 -> 3.3.18 (postcss 8.5.20 -> 8.5.25) to
resolve GHSA-2v37-7h3g-55p8 (infinite-loop DoS, high). Stays within the
3.x CJS line via `npm update nanoid`; lockfile-only change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

🤖 Generated with Claude Code
The existing override pinned brace-expansion to 5.0.8, which is inside the
vulnerable range (>=4.0.0 <5.0.9) for GHSA-rgw5-rvv9-x895. Bumping to 5.0.9
clears both the brace-expansion HIGH advisory and the minimatch HIGH
advisory (vulnerable only via brace-expansion). npm audit now reports 0
vulnerabilities. 5.0.9 keeps a CJS require export, so minimatch@3.1.5's
require continues to work.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jennifer-takagi
jennifer-takagi merged commit 3a55042 into main Aug 10, 2026
1 check passed
@jennifer-takagi
jennifer-takagi deleted the ktlo/dependabot-nanoid-2026-08-07 branch August 10, 2026 09:48
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