CVE-2024-55565
MEDIUM 4.3CVSS 3.1Predictable results in nanoid generation when given non-integer values
nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.
- Published
- 9 Dec 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-835
- Also known as
- GHSA-mwcw-c2x4-8c55
- Sources
- NVDJSONOSV GHSA-mwcw-c2x4-8c55JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | nanoid | >= 4.0.0, < 5.0.9 | 5.0.9 |
| OSV | npm | nanoid | < 3.3.8 | 3.3.8 |
References
- https://github.com/ai/nanoid/compare/3.3.7...3.3.8 · WEB
- https://github.com/ai/nanoid/pull/510 · WEB
- https://github.com/ai/nanoid/releases/tag/5.0.9 · WEB
- https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html · WEB
- https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-55565 · ADVISORY
- https://github.com/ai/nanoid · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 9 Dec 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Dec 2024)