CISA list

● npm package

nanoid

Nanoid has five security advisories. The newest release any of them names as the fix is 5.1.16.

As of , nanoid has five security advisories. The newest release any of them names as the fix is 5.1.16.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
From 4.0.0 before 5.1.165.1.164 advisories
Before 3.3.183.3.185 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-73086GHSA-xwg4-73v4-xw9wnanoid: Integer Overflow or WraparoundHigh severityFrom 4.0.0 before 5.1.11; Before 3.3.123.3.12, 5.1.11
CVE-2026-67214GHSA-28wg-ghj8-5hjvnanoid: non-secure generators can loop indefinitely with negative sizeHigh severityFrom 4.0.0 before 5.1.16; Before 3.3.163.3.16, 5.1.16
CVE-2026-67213GHSA-2v37-7h3g-55p8nanoid: custom generators can loop indefinitely when size is zeroHigh severityFrom 4.0.0 before 5.1.6; Before 3.3.183.3.18, 5.1.6
CVE-2024-55565GHSA-mwcw-c2x4-8c55Predictable results in nanoid generation when given non-integer valuesModerate severityFrom 4.0.0 before 5.0.9; Before 3.3.83.3.8, 5.0.9
CVE-2021-23566GHSA-qrpm-p2h7-hrv2Exposure of Sensitive Information to an Unauthorized Actor in nanoidModerate severityFrom 3.0.0 before 3.1.313.1.31

Other npm packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0