Skip to content

SBAI-7198: pin frontend nanoid >= 3.3.18 - #471

Open
BizaNator wants to merge 1 commit into
mainfrom
sb-lore/sbai-7198-nanoid
Open

SBAI-7198: pin frontend nanoid >= 3.3.18#471
BizaNator wants to merge 1 commit into
mainfrom
sb-lore/sbai-7198-nanoid

Conversation

@BizaNator

Copy link
Copy Markdown
Contributor

Resolves SBAI-7198.

What

npm audit reported GHSA-2v37-7h3g-55p8 (High): transitive nanoid <3.3.18 can loop forever in a custom generator when size is 0.

Parent

npm ls nanoidvite@6.4.3postcss@8.5.25nanoid. Latest postcss still depends on ^3.3.16/^3.3.17 — no parent bump forces 3.3.18. Override is the justified fallback.

Change

  • frontend/package.json overrides.nanoid = ^3.3.18
  • lockfile resolves nanoid@3.3.18
  • src/security/nanoid-resolution.test.ts — lockfile version floor + size-0 custom generator does not hang

No product import of nanoid (build-time via Vite/postcss only).

Verify

  • npm audit → 0 vulnerabilities
  • npm run test:node → 27/27
  • tsc --noEmit clean

Out of scope

website/package-lock.json still resolves nanoid@3.3.12. Same advisory, different package — follow-up, not this ticket.

Respect LoreGUI merge freeze: do not self-merge.

postcss (via Vite) already allowed ^3.3.16; no parent release requires
3.3.18, so pin the floor with an npm override. Lockfile now resolves
3.3.18. Node tests assert the resolved version and that a size-0 custom
generator returns without hanging.
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
loregui Ready Ready Preview Aug 17, 2026 4:25pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant