Nanoid Project Nanoid vulnerabilities
2 known vulnerabilities affecting nanoid_project/nanoid.
Total CVEs
2
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
MEDIUM2
Vulnerabilities
Page 1 of 1
CVE-2024-55565MEDIUM≥ 4.0.0, < 5.0.9≥ 0, < 3.3.82024-12-09
CVE-2024-55565 [MEDIUM] CWE-835 Predictable results in nanoid generation when given non-integer values
Predictable results in nanoid generation when given non-integer values
When nanoid is called with a fractional value, there were a number of undesirable effects:
1. in browser and non-secure, the code infinite loops on while (size--)
2. in node, the value of poolOffset becomes fractional, causing calls to nanoid to return zeroes until the pool is next filled
3. if the first call in node is a
ghsaosv
CVE-2021-23566MEDIUMCVSS 5.5≥ 3.0.0, < 3.1.31≥ unspecified, < 3.1.312022-01-14
CVE-2021-23566 [MEDIUM] CWE-704 CVE-2021-23566: The package nanoid from 3.0.0 and before 3.1.31 are vulnerable to Information Exposure via the value
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.
ghsanvdosv