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
OpenSSF Scorecard
6.5/10
ai/nanoid (opens in a new tab)

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.

VersionKnown vulnerabilitiesDownloads
3.3.18Aug 7, 2026No known vulnerabilities55.5M
3.3.20Oct 5, 2026No known vulnerabilities41.6M
3.3.19Sep 10, 2026No known vulnerabilities38M
3.3.11Mar 18, 20253 known vulnerabilities, worst rated critical36.3M
3.3.16Jul 12, 20261 known vulnerability, worst rated critical17.8M
5.1.16Jun 24, 2026No known vulnerabilities16.8M
3.3.12Apr 30, 20262 known vulnerabilities, worst rated critical16M
3.3.15Jun 21, 20262 known vulnerabilities, worst rated critical8.5M

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.

LineNewest releaseReleased
66.0.2Oct 5, 2026
55.1.16Jun 24, 2026
44.0.2Mar 26, 2023
33.3.20Oct 5, 2026
22.1.11Jan 30, 2020
11.3.4Nov 4, 2018

Newest advisories

The 5 most recently published, with the versions each one affects.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Check your whole repo

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.

Last checked against OSV.dev, CISA KEV, npm and deps.dev.