CVE-2021-23566
unknown
CVSS v3
—
CVSS v2
—
VIR risk
—
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.
Predictions
Exploit likelihood
20%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-23566
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 9.1.4+ds1+~cs28.2.8-1 |
| debian | bullseye | fixed | 8.2.1+ds1+~cs29.4.27-3+deb11u1 |
| debian | forky | fixed | 9.1.4+ds1+~cs28.2.8-1 |
| debian | sid | fixed | 9.1.4+ds1+~cs28.2.8-1 |
| debian | trixie | fixed | 9.1.4+ds1+~cs28.2.8-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | nanoid | >=3.0.0,<3.1.31 | 3.1.31 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23566
- https://github.com/ai/nanoid/pull/328
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575
- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444
- https://github.com/ai/nanoid
- 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
- https://security-tracker.debian.org/tracker/CVE-2021-23566
Verify integrity in audit chain (admin only). AS-IS.