---
title: "nanoid 6.0.2: release notes, upgrades and advisories"
description: "nanoid 6.0.2: release notes, breaking changes by major version and 5 known advisories with their fix."
url: https://inlinr.com/packages/nanoid
lang: en
---

[Packages](https://inlinr.com/packages)

# nanoid

6.0.2 · 5 Oct 2026 MIT 398.9M / week [Repository](https://github.com/ai/nanoid) [Homepage](https://github.com/ai/nanoid#readme) [npm](https://www.npmjs.com/package/nanoid) [Atom feed](https://inlinr.com/packages/feed/nanoid)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/nanoid/upgrade)

LineNewestSecurity

- 6.x 6.0.2 No known advisory Latest line
- 5.x 5.1.16 Safe from 5.1.16 [To 6.0.2](https://inlinr.com/packages/nanoid/upgrade/5.1.16-6.0.2)
- 4.x 4.0.2 4 open advisories, worst high  · last release Mar 2023, no longer updated [To 6.0.2](https://inlinr.com/packages/nanoid/upgrade/4.0.2-6.0.2)
- 3.x 3.3.20 Safe from 3.3.18 [To 6.0.2](https://inlinr.com/packages/nanoid/upgrade/3.3.20-6.0.2)
- 2.x and older 2.1.11 16 open advisories, worst high  · last release Jan 2020, no longer updated [To 6.0.2](https://inlinr.com/packages/nanoid/upgrade/2.1.11-6.0.2)

## Latest releases

[All 135 releases](https://inlinr.com/packages/nanoid/releases)

1. 6.x · latest line
2. ### [6.0.2](https://inlinr.com/packages/nanoid/releases/6.0.2 "Open this release") [](https://github.com/ai/nanoid/blob/HEAD/CHANGELOG.md "Read this release where it was published")  
5 Oct 2026

  - Reduced JS bundle size
  - Fixed floats in size of `customRandom`
  - Fixed performance of `customRandom` on changes size
3. ### [6.0.1](https://inlinr.com/packages/nanoid/releases/6.0.1 "Open this release") [](https://github.com/ai/nanoid/blob/HEAD/CHANGELOG.md "Read this release where it was published")  
3 Aug 2026

  - Fixed docs.
4. ### [6.0.0](https://inlinr.com/packages/nanoid/releases/6.0.0 "Open this release") [](https://github.com/ai/nanoid/releases/tag/6.0.0 "Read this release where it was published")  
12 Jul 2026

  - Removed  
  Removed Node.js 18 and 20 support.
  - Made `nanoid()` and `customAlphabet()` 4 times faster

Dependency tracking

## Know when your own dependencies move

nanoid had 3 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 5](https://inlinr.com/packages/nanoid/security)

- [nanoid: Integer Overflow or Wraparound](https://inlinr.com/advisories/GHSA-xwg4-73v4-xw9w) High · fixed in 5.1.11, 3.3.12
- [nanoid: non-secure generators can loop indefinitely with negative size](https://inlinr.com/advisories/GHSA-28wg-ghj8-5hjv) High · fixed in 5.1.16, 3.3.16
- [nanoid: custom generators can loop indefinitely when size is zero](https://inlinr.com/advisories/GHSA-2v37-7h3g-55p8) High · fixed in 5.1.6, 3.3.18

## Health

[Details](https://inlinr.com/packages/nanoid/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Reading releases, release notes and advisories…

Registry facts last checked 23 Nov 2026\. Releases and advisories last read 23 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
