CVE-2021-23566

NameCVE-2021-23566
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4003-1, DLA-4013-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-mocha (PTS)bullseye8.2.1+ds1+~cs29.4.27-3vulnerable
bullseye (security)8.2.1+ds1+~cs29.4.27-3+deb11u1fixed
bookworm10.1.0+ds1+~cs29.3.1-1fixed
sid, trixie10.7.2+ds1+~cs33.1.11-2fixed
node-postcss (PTS)bullseye8.2.1+~cs5.3.23-8vulnerable
bullseye (security)8.2.1+~cs5.3.23-8+deb11u1fixed
bookworm8.4.20+~cs8.0.23-1fixed
sid, trixie8.4.49+~cs9.2.32-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-mochasourcebullseye8.2.1+ds1+~cs29.4.27-3+deb11u1DLA-4013-1
node-mochasource(unstable)9.1.4+ds1+~cs28.2.8-1
node-postcsssourcebullseye8.2.1+~cs5.3.23-8+deb11u1DLA-4003-1
node-postcsssource(unstable)8.4.5+~cs7.1.51-1

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

Search for package or bug name: Reporting problems