npm package
nanoid vulnerabilities by version
The latest release, 6.0.2 (Oct 5, 2026), has no known vulnerabilities. 42% of last week’s 273.5M downloads went to versions with known vulnerabilities. OSV.dev lists 5 advisories for nanoid; the newest was published on Sep 1, 2026.
npm (opens in a new tab) describes it as “A tiny (117 bytes), secure URL-friendly unique string ID generator”
- Latest release
- 6.0.2
- Oct 5, 2026, no known vulnerabilities
- Downloads last week
- 273.5M
- All versions, from npm
- Advisories on OSV.dev
- 5
- Newest Sep 1, 2026
- Licence
- MIT
Most-downloaded versions last week
From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
Who is still on a vulnerable nanoid
42% of last week’s 273.5M nanoid downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Release lines
The newest release of each major line, from the registry. nanoid doesn’t publish support dates we can check.
Newest advisories
The 5 most recently published, with the versions each one affects.
CriticalCVE-2026-73086 on OSV.dev (opens in a new tab)GHSA-xwg4-73v4-xw9w
nanoid: Integer Overflow or Wraparound
Affects < 3.3.12; >= 4.0.0, < 5.1.11. Published Sep 1, 2026.
CriticalCVE-2026-67214 on OSV.dev (opens in a new tab)GHSA-28wg-ghj8-5hjv
nanoid: non-secure generators can loop indefinitely with negative size
Affects < 3.3.16; >= 4.0.0, < 5.1.16. Published Jul 29, 2026.
CriticalCVE-2026-67213 on OSV.dev (opens in a new tab)GHSA-2v37-7h3g-55p8
nanoid: custom generators can loop indefinitely when size is zero
Affects < 3.3.18; >= 4.0.0, < 5.1.6. Published Jul 29, 2026.
WarningCVE-2024-55565 on OSV.dev (opens in a new tab)GHSA-mwcw-c2x4-8c55
Predictable results in nanoid generation when given non-integer values
Affects >= 4.0.0, < 5.0.9; < 3.3.8. Published Dec 9, 2024.
WarningCVE-2021-23566 on OSV.dev (opens in a new tab)GHSA-qrpm-p2h7-hrv2
Exposure of Sensitive Information to an Unauthorized Actor in nanoid
Affects >= 3.0.0, < 3.1.31. Published Jan 21, 2022.
Which nanoid do you have?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for nanoid, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.