In short
- CVE-2024-55565 is a MEDIUM (CVSS 4.3) vulnerability affecting nanoid.
- Chance of exploitation in the next 30 days (EPSS): 0.66%, higher than 52.0% of all vulnerabilities.
- Fix: update to 5.0.9, 3.3.8 or later.
| Package | Affected versions | Patched versions |
|---|
| nanoid npm | ≥ 4.0.0, < 5.0.9< 3.3.8
| 5.0.93.3.8
|
Description
When nanoid is called with a fractional value, there were a number of undesirable effects:
- in browser and non-secure, the code infinite loops on while (size--)
- in node, the value of poolOffset becomes fractional, causing calls to nanoid to return zeroes until the pool is next filled
- if the first call in node is a fractional argument, the initial buffer allocation fails with an error
Version 3.3.8 and 5.0.9 are fixed.
NVD description
nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free