CVE-2021-23566: Information Exposure

Published Jan 14, 2022
·
Updated

A flaw was found in the nanoid library where the valueOf() function allows the reproduction of the last id generated. This flaw allows an attacker to expose sensitive information.

Other sources

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.

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.

GitHub

Affected Software

6 affected componentsFixes available
npm/nanoid>=3.0.0<3.1.31
3.1.31
redhat/nanoid<3.1.31
3.1.31
Nanoid Project Nanoid Node.js>=3.0.0<3.1.31
IBM Business Automation Insights<=25.0.0
IBM Business Automation Insights<=24.0.1
IBM Business Automation Insights<=24.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/nanoid to a version that resolves this vulnerability.

    Fixed in 3.1.31
  2. Upgrade

    Upgrade redhat/nanoid to a version that resolves this vulnerability.

    Fixed in 3.1.31

Event History

Jan 14, 2022
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 21, 2022
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·11:57 PM
Data Sourced
via GitHub·11:57 PM
DescriptionSeverityWeaknessAffected Software
Feb 4, 2022
Data Sourced
via Red Hat·07:18 PM
DescriptionSeverityAffected Software
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-23566?

CVE-2021-23566 has been rated as a medium severity vulnerability due to its potential for information exposure.

2

How do I fix CVE-2021-23566?

To fix CVE-2021-23566, you should upgrade the nanoid library to version 3.1.31 or later.

3

What versions are affected by CVE-2021-23566?

CVE-2021-23566 affects the nanoid library from version 3.0.0 up to, but not including, version 3.1.31.

4

What type of vulnerability is CVE-2021-23566?

CVE-2021-23566 is categorized as an information exposure vulnerability.

5

What impact does CVE-2021-23566 have on applications?

CVE-2021-23566 can allow attackers to reproduce the last ID generated, potentially exposing sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203