CVE-2021-23566
JSON

4.0medium

Information Exposure

Severity
4.0medium CVSS:3.1 by snyk
Exploit likelihood
0.47% (higher than 42% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-qrpm-p2h7-hrv2

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

Product or packageVersionsReported by
nanoidfrom unspecified before 3.1.31CVE List
nanoid (npm)from 3.0.0 before 3.1.31GitHub Advisory Database
nanoid_project nanoidfrom 3.0.0 before 3.1.31NVD

All scores

snyk4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

The package nanoid from 3.0.0, before 3.1.31, are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.

NVD (es)

El paquete nanoid desde la versión 3.0.0 y antes de la versión 3.1.31, es vulnerable a una Exposición de Información por medio de la función valueOf() que permite reproducir el último id generado

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23566 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qrpm-p2h7-hrv2 changed 2025-11-04CC-BY-4.0
NVDCVE-2021-23566 changed 2026-06-17Public domain