Information exposure in nanoid
Priority LOW 25CWE-704Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
Summary
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.
Why it matters now
EPSS 0.00473 41st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Partial nanoid: 3.1.31nanoid (npm): 3.1.31Red Hat: 3 advisoriesRed Hat: 2 fixed, 4 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | nanoid | before 3.1.31 | 3.1.31 | Patch available | CNA |
| — | nanoid (npm) | 3.0.0 to before 3.1.31 | 3.1.31 | Patch available | GHSA-qrpm-p2h7-hrv2 |
- nanoid Vendor— Affected before 3.1.31 Fixed in 3.1.31 Patch available CNA
- nanoid (npm) Vendor— Affected 3.0.0 to before 3.1.31 Fixed in 3.1.31 Patch available GHSA-qrpm-p2h7-hrv2
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:* | 3.0.0 to before 3.1.31 | Vulnerable | nanoid_project |
- cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:* Versions 3.0.0 to before 3.1.31 Vulnerable ·nanoid_project
Remediation
- Fix · CNA nanoid Fixed in 3.1.31
- Fix · GHSA-qrpm-p2h7-hrv2 nanoid (npm) Fixed in 3.1.31 Advisory →
Red Hat 3 advisories
- RHSA-2022:6156 Released 2022-08-24 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.11.0 security, enhancement, & bugfix update
- RHODF 4.11 for RHEL 8 odf4/cephcsi-rhel8, odf4/mcg-core-rhel8, odf4/mcg-rhel8-operator +12
- RHSA-2022:5069 Released 2022-08-10 · Red Hat rating ImportantOpenShift Container Platform 4.11.0 bug fix and security update
- Red Hat OpenShift Container Platform 4.11 openshift4/ose-alibaba-disk-csi-driver-operator-container-rhel8, openshift4/ose-alibaba-machine-controllers-rhel8, openshift4/ose-aws-ebs-csi-driver-rhel8 +47
- RHSA-2022:1476 Released 2022-04-21 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.3 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet: Fix deferred |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| RHODF 4.11 for RHEL 8 | Fixed | RHSA-2022:6156 |
| Red Hat OpenShift Container Platform 4.11 | Fixed | RHSA-2022:5069 |
Not affected: 7 products
- OpenShift Developer Tools and Services
- RHODF 4.11 for RHEL 8
- Red Hat Data Grid 8
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.11
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23566
- 2026-10-03 Alias added: GHSA-qrpm-p2h7-hrv2
References
Exploit 2
More nanoid_project Nanoid vulnerabilities
- TI-2026-47530 nanoid Infinite Loop via Negative Size in non-secure module CVSS 4.0HIGH 8.2
- TI-2026-47529 nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom CVSS 4.0HIGH 8.2
Sources
- CVE-2021-23566 · CVE Program
- CVE-2021-23566 · NVD
- FIRST EPSS
- GHSA-qrpm-p2h7-hrv2 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23566 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences