Ubuntu CVE Tracker
UBUNTU-CVE-2021-23566
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:16.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:18.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:20.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:20.04:LTS | node-postcss | All versions, no fix listed |
| Ubuntu:22.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:22.04:LTS | node-postcss | All versions, no fix listed |
| Ubuntu:24.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:24.04:LTS | node-postcss | All versions, no fix listed |
| Ubuntu:25.10 | node-mocha | All versions, no fix listed |
| Ubuntu:25.10 | node-postcss | All versions, no fix listed |
| Ubuntu:26.10 | node-mocha | All versions, no fix listed |
| Ubuntu:26.10 | node-postcss | All versions, no fix listed |
| Ubuntu:26.04:LTS | node-mocha | All versions, no fix listed |
| Ubuntu:26.04:LTS | node-postcss | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2021-23566
- https://github.com/ai/nanoid/pull/328
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550
- https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444
- https://snyk.io/vuln/SNYK-JS-NANOID-2332193
- https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575
- https://www.cve.org/CVERecord?id=CVE-2021-23566