# nanoid (npm)

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

- Latest: 6.0.2 (2026-10-05)
- Licence: MIT
- Downloads: 1664999432 last month
- Advisories on the latest version: 0

- CVE-2026-73086 HIGH: nanoid: Integer Overflow or Wraparound Fixed in 3.3.12, 5.1.11.
- CVE-2026-67214 HIGH: nanoid: non-secure generators can loop indefinitely with negative size Fixed in 3.3.16, 5.1.16.
- CVE-2026-67213 HIGH: nanoid: custom generators can loop indefinitely when size is zero Fixed in 3.3.18, 5.1.6.
- CVE-2024-55565 MODERATE: Predictable results in nanoid generation when given non-integer values Fixed in 5.0.9, 3.3.8.
- CVE-2021-23566 MODERATE: Exposure of Sensitive Information to an Unauthorized Actor in nanoid Fixed in 3.1.31.

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