Vulnerability library
Security checkNovember 04, 2025

Exposure of Sensitive Information to an Unauthorized Actor in nanoid

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

Medium severitynpmnanoid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The package nanoid from 3.0.0, before 3.1.31, are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.

Recommendation

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

  • Affected version(s): >= 3.0.0, < 3.1.31
  • Patched version(s): 3.1.31

References

Could your website be exposed too?

SmartScanner can check your website for Exposure of Sensitive Information to an Unauthorized Actor in nanoid and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 04, 2025