nanoid

A tiny (117 bytes), secure URL-friendly unique string ID generator

6.0.2Latest, 5 Oct 2026
1.7BDownloads, last month
0Advisories on the latest
5Advisories, all versions
MITLicence
27KStars
6.5/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High nanoid: Integer Overflow or Wraparound CVE-2026-73086 Fixed in 3.3.12, 5.1.11 1 Sep 2026
High nanoid: non-secure generators can loop indefinitely with negative size CVE-2026-67214 Fixed in 3.3.16, 5.1.16 29 Jul 2026
High nanoid: custom generators can loop indefinitely when size is zero CVE-2026-67213 Fixed in 3.3.18, 5.1.6 29 Jul 2026
Moderate Predictable results in nanoid generation when given non-integer values CVE-2024-55565 Fixed in 5.0.9, 3.3.8 9 Dec 2024
Moderate Exposure of Sensitive Information to an Unauthorized Actor in nanoid CVE-2021-23566 Fixed in 3.1.31 21 Jan 2022

In the news

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.