nanoid up to 3.1.30 ID Generator valueOf information disclosure

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.

A vulnerability, which was classified as problematic, has been found in nanoid up to 3.1.30. This issue affects the function valueOf of the component ID Generator. The manipulation with an unknown input leads to a information disclosure vulnerability. Using CWE to declare the problem leads to CWE-200. Impacted is confidentiality. The summary by CVE is:

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

The weakness was released 01/15/2022 as 2b7bd9332bc49b6330c7ddb08e5c661833db2575. The advisory is shared at The identification of this vulnerability is CVE-2021-23566 since 01/08/2021. The exploitation is known to be easy. An attack has to be approached locally. The successful exploitation needs a simple authentication. Technical details are known, but no exploit is available.

Upgrading to version 3.1.31 eliminates this vulnerability. Applying the patch 2b7bd9332bc49b6330c7ddb08e5c661833db2575 is able to eliminate this problem. The bugfix is ready for download at The best possible mitigation is suggested to be upgrading to the latest version.



CPE 2.3infoedit

CPE 2.2infoedit


VulDB Meta Base Score: 3.6
VulDB Meta Temp Score: 3.6

VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA Base Score: 4.0
CNA Vector (Snyk): 🔒



VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍


Class: Information disclosure
CWE: CWE-200
ATT&CK: Unknown

Local: Yes
Remote: No

Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒


Threat Intelligenceinfoedit

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍


Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: nanoid 3.1.31
Patch: 2b7bd9332bc49b6330c7ddb08e5c661833db2575


01/08/2021 CVE assigned
01/15/2022 +372 days Advisory disclosed
01/15/2022 +0 days VulDB entry created
01/19/2022 +4 days VulDB last update


Advisory: 2b7bd9332bc49b6330c7ddb08e5c661833db2575
Status: Confirmed

CVE: CVE-2021-23566 (🔒)


Created: 01/15/2022 07:54 AM
Updated: 01/19/2022 12:05 PM
Changes: (2) advisory_identifier source_cve_nvd_summary
Complete: 🔍


No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!