Skip to content

fix(deps): bump nanoid to patch CVE-2026-67213 (GHSA-2v37-7h3g-55p8) - #66

Open
svector (Svector-anu) wants to merge 1 commit into
microsoft:mainfrom
Svector-anu:security/bump-nanoid-cve-2026-67213
Open

fix(deps): bump nanoid to patch CVE-2026-67213 (GHSA-2v37-7h3g-55p8)#66
svector (Svector-anu) wants to merge 1 commit into
microsoft:mainfrom
Svector-anu:security/bump-nanoid-cve-2026-67213

Conversation

@Svector-anu

Copy link
Copy Markdown

Summary

nanoid@3.3.16 (transitive dependency of postcss, pulled in via vite — devDependency, build-time only) is affected by GHSA-2v37-7h3g-55p8 / CVE-2026-67213: custom generators can loop indefinitely when size is zero. Fixed upstream in nanoid@3.3.18.

Fix

Lockfile-only bump of the transitive nanoid resolution to 3.3.18. postcss@8.5.25 (the direct consumer) already declares "nanoid": "^3.3.16", so 3.3.18 resolves cleanly within its existing declared range — no package.json changes needed.

     "node_modules/nanoid": {
-      "version": "3.3.16",
+      "version": "3.3.18",

Verification

  • Reproduced locally: n/a (dependency-scan finding, not a code-level repro)
  • Method: osv-scanner --recursive . before/after
  • Before: nanoid@3.3.16 flagged for GHSA-2v37-7h3g-55p8
  • After: osv-scanner reports zero nanoid findings
  • Impact scope: devDependency only (vite build tooling), not present in shipped app bundles

Detected by

osv-scanner (dependency vulnerability scan).

Advisory: GHSA-2v37-7h3g-55p8
Severity: high
Fixed in: nanoid@3.3.18

Detected by osv-scanner. Transitive via vite -> postcss ^8.5.17 -> nanoid
^3.3.16 (devDependency only, build tooling, not shipped in the app).
postcss@8.5.25 already declares nanoid "^3.3.16", so 3.3.18 resolves
within its existing declared range — no manifest changes needed, lockfile
only.
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