cve.bz

CVE-2021-23566

5.5 mediumEPSS 0.4%

Medium (5.5) in nanoid project nanoid. EPSS 0.4% chance of exploitation in the next 30 days. Fixed in nanoid 3.1.31.

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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% chance of exploitation in the next 30 days; higher than 38% of CVEs (scores of 2026-10-31)
CWE
CWE-704
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qrpm-p2h7-hrv2npmnanoid>=3.0.0 <3.1.313.1.31

References

Check your stackJSON