Back
CVE-2021-23566Information Exposure
- 4.0MediumCVSS base score
- 0.47%Exploitation in 30 daysEPSS · top 58% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By snyk
- 12 months later
· 12 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium4.0 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.47% · top 58% of all CVEs (18 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.0.
Affected products
nanoid
- affected unspecified – < 3.1.31
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References7
- https://snyk.io/vuln/SNYK-JS-NANOID-2332193 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 (opens in a new tab)x_refsource_MISCx_transferred
- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ai/nanoid/pull/328 (opens in a new tab)x_refsource_MISCx_transferred
- https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0677 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-qrpm-p2h7-hrv2 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-23566)Record last updated .