nanoid
npm4 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…
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 →