CVE
CVE-2021-23566
published medium CVSS 3.1 · 4.0Information Exposure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | nanoidunspecified to < 3.1.31 | Affected | Not stated | snyk |
| Debian | bullseye | node-mocha | Advisory build | 8.2.1+ds1+~cs29.4.27-3+deb11u1 | DLA-4013-1 |
| Debian | bullseye | node-postcss | Advisory build | 8.2.1+~cs5.3.23-8+deb11u1 | DLA-4003-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.0 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | nanoid | unspecified to < 3.1.31 (affected · custom) | snyk · cna |
Weaknesses
1- Information Exposure
References
7- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575
- https://github.com/ai/nanoid/pull/328
- https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html
- https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550
- https://snyk.io/vuln/SNYK-JS-NANOID-2332193
Provider assertions
2snyk · cna
Information Exposure
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5e9b2fbf4a331a79a7f0deb708da6c66e8855b1fd77d4284bfcd51f7a9f1dcb1
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record