Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nanoid
  4. ›
  5. CVE-2026-73086

CVE-2026-73086: nanoid: Integer Overflow or Wraparound

September 1, 2026

An integer overflow in nanoid(size) permanently corrupts the process-wide CSPRNG pool, causing all subsequent ID generation to return the deterministic string "uuuuuuuuuuuuuuuuuuuuu". Any application that passes user-influenced values to the size parameter loses all randomness guarantees for session tokens, CSRF tokens, and unique identifiers until process restart.

References

  • github.com/advisories/GHSA-xwg4-73v4-xw9w
  • github.com/ai/nanoid/commit/7087969281cab8ba8ae3babf1894e819068b3bb4
  • github.com/ai/nanoid/commit/821dfed7b5db7f88e92f56c60eef32c8135077c3
  • github.com/ai/nanoid/commit/b0036ed60dc9facd7f1191a50dfb3076500202ac
  • github.com/ai/nanoid/releases/tag/3.3.12
  • github.com/ai/nanoid/releases/tag/5.1.11
  • github.com/ai/nanoid/security/advisories/GHSA-xwg4-73v4-xw9w
  • nvd.nist.gov/vuln/detail/CVE-2026-73086

Code Behaviors & Features

Detect and mitigate CVE-2026-73086 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.3.12, all versions starting from 4.0.0 before 5.1.11

Fixed versions

  • 3.3.12
  • 5.1.11

Solution

Upgrade to versions 3.3.12, 5.1.11 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

npm/nanoid/CVE-2026-73086.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 12:22:58 +0000.