Skip to content

chore(deps): bump nanoid past GHSA-2v37-7h3g-55p8 - #536

Merged
PathGao merged 1 commit into
masterfrom
chore/nanoid-3317
Aug 8, 2026
Merged

chore(deps): bump nanoid past GHSA-2v37-7h3g-55p8#536
PathGao merged 1 commit into
masterfrom
chore/nanoid-3317

Conversation

@PathGao

@PathGao PathGao commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Why

npm audit is a required check (.github/workflows/test.yml, guarded by scripts/workflowSecurityAudit.test.ts). A newly published advisory against nanoid <3.3.17GHSA-2v37-7h3g-55p8, high, custom generators can loop indefinitely when size is zero — turned it red on every open pull request, including ones that touch nothing related:

The audit step runs before npm test and npm run check, so a red test job currently says nothing about the branch it is reporting on.

What

Lockfile only, three lines:

nanoid 3.3.16 → 3.3.18

nanoid is not a direct dependency — it arrives as vite → postcss → nanoid, and postcss's range already admits the fixed release, so npm audit fix resolves it without touching package.json. Unlike the dompurify pin in #528 there is no overrides entry to add: nothing is holding the version back, the lockfile was simply resolved before the fix existed.

3.3.18 rather than the advisory's minimum 3.3.17 because that is the current patch release of the same line.

Verification

  • npm audit — found 0 vulnerabilities (was 1 high)
  • npm test — 843/843 pass
  • npm run check — 666 files, 0 errors, 0 warnings

🤖 Generated with Claude Code

`npm audit` is a required check, and a newly published advisory against
nanoid <3.3.17 turned it red on every open pull request — including ones
that touch nothing but Svelte components. The check fails before
`npm test` and `npm run check` ever run, so it hides whatever the branch
actually did.

nanoid is not a direct dependency; it arrives under
vite → postcss → nanoid, and postcss's range already admits the fixed
release, so this is a lockfile-only bump (3.3.16 → 3.3.18, the current
patch). Unlike the dompurify pin in #528 there is nothing to state in
`package.json`: no override is needed to hold the floor.

`npm audit` now reports 0 vulnerabilities; 843 tests pass and
`npm run check` is clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@PathGao
PathGao merged commit ed68bc6 into master Aug 8, 2026
4 checks passed
@PathGao
PathGao deleted the chore/nanoid-3317 branch August 8, 2026 03:06
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