Skip to content

fix(express-js): bump nanoid to 3.3.18 for GHSA-2v37-7h3g-55p8 - #1094

Open
SnowboardTechie wants to merge 1 commit into
mainfrom
bryan/express-js-nanoid-floor
Open

fix(express-js): bump nanoid to 3.3.18 for GHSA-2v37-7h3g-55p8#1094
SnowboardTechie wants to merge 1 commit into
mainfrom
bryan/express-js-nanoid-floor

Conversation

@SnowboardTechie

@SnowboardTechie SnowboardTechie commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Clears the high-severity nanoid advisory failing the express-js template's audit
  • Time to review: 2 minutes

Changes proposed

  • Refresh templates/express-js/pnpm-lock.yaml so nanoid resolves to 3.3.18, clearing GHSA-2v37-7h3g-55p8 (high: custom generators can loop indefinitely when size is zero).

Context for reviewers

nanoid is transitive here (vitest → vite → postcss → nanoid, 6 paths), so Dependabot won't file a direct-dependency bump that reaches it.

No override is needed for this one. postcss declares nanoid: ^3.3.16, a range that already admits the patched 3.3.18 — the lockfile was simply still pinned to 3.3.16. Refreshing the lockfile is enough, so the template's security-floor overrides in pnpm-workspace.yaml are untouched and there is no entry to remember to remove later.

The advisory currently fails pnpm audit on any PR whose CI touches this template (seen on #1093, and reproducible on main).

Verified by running the template's CI steps locally against the updated lockfile: pnpm install --frozen-lockfile, pnpm run checks, pnpm run build, and pnpm audit, all green with No known vulnerabilities found.

Additional information

Lockfile-wide check after the refresh: grep 'nanoid@' pnpm-lock.yaml shows only 3.3.18.

@github-actions github-actions Bot added the typescript Issue or PR related to TypeScript tooling label Aug 14, 2026
@SnowboardTechie
SnowboardTechie marked this pull request as ready for review August 18, 2026 15:29
@SnowboardTechie
SnowboardTechie force-pushed the bryan/express-js-nanoid-floor branch from 018d0f0 to 8f73291 Compare August 18, 2026 16:28
@SnowboardTechie SnowboardTechie changed the title fix(express-js): floor nanoid above GHSA-2v37-7h3g-55p8 fix(express-js): bump nanoid to 3.3.18 for GHSA-2v37-7h3g-55p8 Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript Issue or PR related to TypeScript tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant