npmWorst: High5 advisories

nanoid: known vulnerabilities

nanoid has 5 reviewed security advisories in the GitHub Advisory Database — 3 high, 2 moderate. The most recent was published 2026-08-11. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the nanoid versions running across your servers, containers and images, and ranks what to patch first.

How to fix nanoid

Upgrade nanoid to a release at or above the fixed version shown for each advisory below. For npm:

npm install nanoid@5.1.11 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

nanoid: Integer Overflow or Wraparound High 7.4 CWE-190 — Affected: from 4.0.0 up to 5.1.11. Fixed in 5.1.11. Published 2026-08-11. GHSA-xwg4-73v4-xw9w · CVE-2026-73086
nanoid: non-secure generators can loop indefinitely with negative size High 5.9 CWE-835 — Affected: from 4.0.0 up to 5.1.16. Fixed in 5.1.16. Published 2026-07-29. GHSA-28wg-ghj8-5hjv · CVE-2026-67214
nanoid: custom generators can loop indefinitely when size is zero High 5.9 CWE-835 — Affected: from 4.0.0 up to 5.1.6. Fixed in 5.1.6. Published 2026-07-29. GHSA-2v37-7h3g-55p8 · CVE-2026-67213
Predictable results in nanoid generation when given non-integer values Moderate 4.3 CWE-835 — Affected: before 3.3.8. Fixed in 3.3.8. Published 2024-12-09. GHSA-mwcw-c2x4-8c55 · CVE-2024-55565
Exposure of Sensitive Information to an Unauthorized Actor in nanoid Moderate 5.5 CWE-200 CWE-704 — Affected: from 3.0.0 up to 3.1.31. Fixed in 3.1.31. Published 2022-01-14. GHSA-qrpm-p2h7-hrv2 · CVE-2021-23566

Find nanoid across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.