CVEfocus › CVE database › CVE-2021-23566

CVE-2021-23566Information Exposure

CVSS 4.0 MediumEPSS 0.5% (higher than 33% of CVEs)Published 2022-01-14Updated 2025-11-03Assigner: snyk

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.

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
2Fix pending
6Under investigation
8Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-mochaFix pendingUBUNTU-CVE-2021-23566
Ubuntu 26.10node-postcssFix pendingUBUNTU-CVE-2021-23566
Ubuntu 26.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 26.04node-mochaUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 26.04node-postcssUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 25.10chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 25.10node-mochaWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 25.10node-postcssWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 24.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 24.04node-mochaUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 24.04node-postcssUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 22.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 22.04node-mochaUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 22.04node-postcssUnder investigationUBUNTU-CVE-2021-23566
Ubuntu 20.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 20.04node-mochaWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 20.04node-postcssWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 18.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 18.04node-mochaWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 16.04chromium-browserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
Ubuntu 16.04node-mochaWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2021-23566
Ubuntu 14.04chromium-browserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
Debian 14node-mochaFixed9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2021-23566
Debian 14node-postcssFixed8.4.5+~cs7.1.51-1DEBIAN-CVE-2021-23566
Debian 13node-mochaFixed9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2021-23566
Debian 13node-postcssFixed8.4.5+~cs7.1.51-1DEBIAN-CVE-2021-23566
Debian 12node-mochaFixed9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2021-23566
Debian 12node-postcssFixed8.4.5+~cs7.1.51-1DEBIAN-CVE-2021-23566
npm librarynanoidFixed3.1.31GHSA-qrpm-p2h7-hrv2

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.