Vulnerability library
Security checkSeptember 01, 2026

nanoid: Integer Overflow or Wraparound

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmnanoid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An integer overflow in nanoid(size) permanently corrupts the process-wide CSPRNG pool, causing all subsequent ID generation to return the deterministic string "uuuuuuuuuuuuuuuuuuuuu".

Recommendation

Update the nanoid package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 4.0.0, < 5.1.11 < 3.3.12**
  • Patched version(s): **5.1.11 3.3.12**

References

Could your website be exposed too?

SmartScanner can check your website for nanoid: Integer Overflow or Wraparound and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 01, 2026