CVEvulnerability
CVE-2021-23566
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2022-01-14
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.0 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 2.1 LOW — AV:L/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-704
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 configurations
• nanoid project nanoid (>= 3.0.0 < 3.1.31)
Related
Weakness · CWE (1)
- CWE-704 Incorrect Type Conversion or Cast weakness
References
- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 Exploit, Third Party Advisory
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 Patch, Third Party Advisory
- https://github.com/ai/nanoid/pull/328 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-NANOID-2332193 Exploit, Third Party Advisory
- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 Exploit, Third Party Advisory
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 Patch, Third Party Advisory
- https://github.com/ai/nanoid/pull/328 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html lists.debian.org
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-NANOID-2332193 Exploit, Third Party Advisory