# CVE-2024-55565: Predictable results in nanoid generation when given non-integer values

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-12-09T00:00:00.000Z
- Modified: 2026-09-10T03:50:21.666Z
- Also known as: GHSA-mwcw-c2x4-8c55
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nanoid (npm): from 4.0.0 before 5.0.9; before 3.3.8

## Every score

- CISA-ADP: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/ai/nanoid/pull/510> (web)
- <https://github.com/ai/nanoid/releases/tag/5.0.9> (web)
- <https://github.com/ai/nanoid/compare/3.3.7...3.3.8> (web)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-55565> (advisory)
- <https://github.com/ai/nanoid> (package)

## Sources

- CVE List: [CVE-2024-55565](https://www.cve.org/CVERecord?id=CVE-2024-55565), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-mwcw-c2x4-8c55](https://github.com/advisories/GHSA-mwcw-c2x4-8c55), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-55565](https://nvd.nist.gov/vuln/detail/CVE-2024-55565), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55565 · Whole record: https://cve.day/CVE-2024-55565.json · Rebuilt by cve.day 2026-11-25T22:58:49.827Z
