CVE-2026-73086: nanoid: Integer Overflow or Wraparound
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 →