CVE-2021-23566

Information Exposure

MEDIUM
5.5
CVSS Score
Published: January 14, 2022 at 08:05 PM UTC
Updated: June 17, 2026 at 03:38 AM UTC
1 product affected across 1 vendorNanoid

Using nanoid by N/A?

Get instant alerts when new vulnerabilities affect nanoid - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.4%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.1.313.0.0 ≤ v < 3.1.31
Affected range stops below 3.1.31, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (7)

x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
https://github.com/ai/nanoid/pull/328
x_refsource_MISCExploitThird Party Advisory
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550
x_refsource_MISCExploitThird Party Advisory
https://snyk.io/vuln/SNYK-JS-NANOID-2332193
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-704

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card