nanoid
npm5 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting nanoidpage 1 of 1
- CVE-2021-23566MEDIUMCVSS 4.0EG 4.0✓ Fixed in 3.1.312022-01-14
The package nanoid from 3.0.0 and before 3.1.31 are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.
- CVE-2024-55565MEDIUMCVSS 4.3EG 4.3✓ Fixed in 3.3.82024-12-09
nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.
- CVE-2026-67213HIGHCVSS 7.5EG 7.5✓ Fixed in 5.1.62026-07-29
nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indef…
- CVE-2026-67214HIGHCVSS 7.5EG 7.5✓ Fixed in 5.1.162026-07-29
nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented fr…
- CVE-2026-73086HIGHCVSS 7.4EG 7.4✓ Fixed in 5.1.112026-08-11
nanoid is a secure, URL-friendly, unique string ID generator for JavaScript. Prior to versions 3.3.12 and 5.1.11, the nanoid(size) function in index.js and index.cjs coerces the user-influenced size parameter to a signed 32-bit integer, al…
Check whether nanoid is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for nanoid CVEs against the assets you own.
Start Free Scan →