Skip to content
OpenAdvisories
Medium · 4.0 CVE-2021-23566 EUVD-2022-0677GHSA-qrpm-p2h7-hrv2

Information Exposure

Published Jan 14, 2022 · Updated Nov 3, 2025 · Assigned by snyk

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 products

VendorProductAffectedFixed
— nanoid unspecified – < 3.1.31 3.1.31

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-mocha 9.1.4+ds1+~cs28.2.8-1 —
Debian 14 node-postcss 8.4.5+~cs7.1.51-1 —
Debian 13 node-mocha 9.1.4+ds1+~cs28.2.8-1 —
Debian 13 node-postcss 8.4.5+~cs7.1.51-1 —
Debian 12 node-mocha 9.1.4+ds1+~cs28.2.8-1 —
Debian 12 node-postcss 8.4.5+~cs7.1.51-1 —
Debian 11 node-mocha 8.2.1+ds1+~cs29.4.27-3+deb11u1 DLA-4013-1
Debian 11 node-postcss 8.2.1+~cs5.3.23-8+deb11u1 DLA-4003-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-mocha +1 No fix yet —
Ubuntu 26.04 LTS node-mocha +1 No fix yet —
Ubuntu 25.10 node-mocha +1 No fix yet —
Ubuntu 24.04 LTS node-mocha +1 No fix yet —
Ubuntu 22.04 LTS node-mocha +1 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-mocha +1 No fix yet —
Ubuntu 18.04 LTS node-mocha No fix yet —
Ubuntu 16.04 LTS node-mocha No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nanoid >= 3.0.0, < 3.1.31 3.1.31 GHSA-qrpm-p2h7-hrv2

Advisories 3

References