Name | CVE-2021-23566 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-4003-1, DLA-4013-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
node-mocha (PTS) | bullseye | 8.2.1+ds1+~cs29.4.27-3 | vulnerable |
| bullseye (security) | 8.2.1+ds1+~cs29.4.27-3+deb11u1 | fixed |
| bookworm | 10.1.0+ds1+~cs29.3.1-1 | fixed |
| sid, trixie | 10.7.2+ds1+~cs33.1.11-2 | fixed |
node-postcss (PTS) | bullseye | 8.2.1+~cs5.3.23-8 | vulnerable |
| bullseye (security) | 8.2.1+~cs5.3.23-8+deb11u1 | fixed |
| bookworm | 8.4.20+~cs8.0.23-1 | fixed |
| sid, trixie | 8.4.49+~cs9.2.32-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 (3.1.31)
https://github.com/ai/nanoid/pull/328
node-mocha/9.1.4+ds1+~cs28.2.8-1 removes the node-nanoid copy