5.5

CVE-2021-23566: Information Exposure

Modified
AliasesUBUNTU-CVE-2021-23566DEBIAN-CVE-2021-23566GHSA-qrpm-p2h7-hrv2
Published 14-01-2022Last modified 03-11-2025

Vulnerability summary

CVE-2021-23566 is a medium (CVSS 5.5) Incorrect Type Conversion or Cast vulnerability in nanoid_project nanoid. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 38.2% of scored vulnerabilities. 4 public exploits are recorded.

Priority
Routine

Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.44%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits4github, reference

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 14-01-2022
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.44%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.44% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

4 found
  • githubUnverified

    Bc6D1Eb9A3477D15D2772E876169A444

    Maturity: poc

  • githubUnverified

    Nanoid

    Maturity: poc

  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Show all 4 exploits
  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • node-mocha< 9.1.4+ds1+~cs28.2.8-1
  • node-postcss< 8.4.5+~cs7.1.51-1
Ubuntu2 products
  • node-mochaAll versions (No fix recorded)
  • node-postcssAll versions (No fix recorded)
Nanoid_project1 product
Npm1 product
  • nanoid≥ 3.0.0, < 3.1.31

4 vendors · 6 products

References

12 links
Show all 12 references