CVE Vulnerabilities

CVE-2021-23566

Incorrect Type Conversion or Cast

Published: Jan 14, 2022 | Modified: Nov 03, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
5.5 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product does not correctly convert an object, resource, or structure from one type to a different type.

Affected Software

NameVendorStart VersionEnd Version
NanoidNanoid_project3.0.0 (including)3.1.31 (excluding)
Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8RedHatrhacm2/kui-web-terminal-rhel8:v2.3.6-7*
Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8RedHatrhacm2/console-rhel8:v2.3.8-4*
Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8RedHatrhacm2/grc-ui-rhel8:v2.3.8-5*
Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8RedHatrhacm2/search-ui-rhel8:v2.3.8-4*
Red Hat OpenShift Container Platform 4.11RedHatopenshift4/ose-thanos-rhel8:v4.11.0-202208020235.p0.gf08da2d.assembly.stream*
Red Hat OpenShift Data Foundation 4.11 on RHEL8RedHatodf4/mcg-core-rhel8:v4.11.0-30*
Chromium-browserUbuntutrusty*
Chromium-browserUbuntuupstream*
Chromium-browserUbuntuxenial*
Node-mochaUbuntubionic*
Node-mochaUbuntufocal*
Node-mochaUbuntuimpish*
Node-mochaUbuntukinetic*
Node-mochaUbuntulunar*
Node-mochaUbuntumantic*
Node-mochaUbuntuoracular*
Node-mochaUbuntuplucky*
Node-mochaUbuntutrusty*
Node-mochaUbuntuxenial*
Node-postcssUbuntufocal*
Node-postcssUbuntuimpish*
Node-postcssUbuntukinetic*
Node-postcssUbuntulunar*
Node-postcssUbuntumantic*
Node-postcssUbuntuoracular*
Node-postcssUbuntuplucky*
Node-postcssUbuntutrusty*
Node-postcssUbuntuxenial*

References