CVE-2021-23566
4.0medium
Information Exposure
- Severity
- 4.0medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-qrpm-p2h7-hrv2
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nanoid | from unspecified before 3.1.31 | CVE List |
| nanoid (npm) | from 3.0.0 before 3.1.31 | GitHub Advisory Database |
| nanoid_project nanoid | from 3.0.0 before 3.1.31 | NVD |
All scores
| snyk | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
The package nanoid from 3.0.0, before 3.1.31, are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.
NVD (es)
El paquete nanoid desde la versión 3.0.0 y antes de la versión 3.1.31, es vulnerable a una Exposición de Información por medio de la función valueOf() que permite reproducir el último id generado
References
| https://snyk.io/vuln/SNYK-JS-NANOID-2332193 | exploit, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 | exploit, third-party-advisory, web | |
| https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 | exploit, third-party-advisory, web | |
| https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 | patch, third-party-advisory, web | |
| https://github.com/ai/nanoid/pull/328 | exploit, issue-tracking, patch, third-party-advisory, 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-2021-23566 | advisory | |
| https://github.com/ai/nanoid | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23566 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qrpm-p2h7-hrv2 changed 2025-11-04 | CC-BY-4.0 |
| NVD | CVE-2021-23566 changed 2026-06-17 | Public domain |