Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/nanoid@3.0.2
purl pkg:npm/nanoid@3.0.2
Next non-vulnerable version 3.3.8
Latest non-vulnerable version 5.0.9
Risk 3.1
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-7cky-3c29-zyar
Aliases:
CVE-2021-23566
GHSA-qrpm-p2h7-hrv2
Exposure of Sensitive Information to an Unauthorized Actor in nanoid 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.
3.1.31
Affected by 1 other vulnerability.
VCID-s6f3-3mxh-ekfr
Aliases:
CVE-2024-55565
GHSA-mwcw-c2x4-8c55
Predictable results in nanoid generation when given non-integer values When nanoid is called with a fractional value, there were a number of undesirable effects: 1. in browser and non-secure, the code infinite loops on while (size--) 2. in node, the value of poolOffset becomes fractional, causing calls to nanoid to return zeroes until the pool is next filled 3. if the first call in node is a fractional argument, the initial buffer allocation fails with an error Version 3.3.8 and 5.0.9 are fixed.
3.3.8
Affected by 0 other vulnerabilities.
5.0.9
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T23:16:30.470430+00:00 GitLab Importer Affected by VCID-s6f3-3mxh-ekfr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2024-55565.yml 38.4.0
2026-04-16T21:37:56.705905+00:00 GitLab Importer Affected by VCID-7cky-3c29-zyar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2021-23566.yml 38.4.0
2026-04-12T00:35:13.290002+00:00 GitLab Importer Affected by VCID-s6f3-3mxh-ekfr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2024-55565.yml 38.3.0
2026-04-11T22:52:18.129732+00:00 GitLab Importer Affected by VCID-7cky-3c29-zyar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2021-23566.yml 38.3.0
2026-04-03T00:42:59.998593+00:00 GitLab Importer Affected by VCID-s6f3-3mxh-ekfr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2024-55565.yml 38.1.0
2026-04-02T23:01:42.589942+00:00 GitLab Importer Affected by VCID-7cky-3c29-zyar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2021-23566.yml 38.1.0
2026-04-01T17:20:33.217226+00:00 GitLab Importer Affected by VCID-7cky-3c29-zyar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/nanoid/CVE-2021-23566.yml 38.0.0