Vulnerability in Nanoid Project
CVE-2021-23566
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.0 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.005, 41.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Nanoid Project
- Nanoid — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, git-kick/ioBroker.e3dc-rscp, MaySoMusician/geidai-ikoi). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-NANOID-2332193 (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 (Exploit, Third Party Advisory)
- gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 (Exploit, Third Party Advisory)
- github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 (Patch, Third Party Advisory)
- github.com/ai/nanoid/pull/328 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- lists.debian.org/debian-lts-announce/2024/12/msg00025.html
- lists.debian.org/debian-lts-announce/2025/01/msg00006.html