{"id":"CVE-2021-23566","aliases":["CVE-2021-23566","GHSA-qrpm-p2h7-hrv2"],"related":[],"kind":"vulnerability","state":"published","title":"Information Exposure","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete nanoid desde la versión 3.0.0 y antes de la versión 3.1.31, es vulnerable a una Exposición de Información por medio de la función valueOf() que permite reproducir el último id generado","source":"nvd"}],"published":"2022-01-14T20:05:21.597Z","modified":"2026-06-17T03:38:49.813Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-200","CWE-704"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.1.31","status":"affected"}],"product":"nanoid","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.31"}],"ecosystem":"npm","package":"nanoid","purl":"pkg:npm/nanoid","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"3.1.31"}],"vendor":"nanoid_project","product":"nanoid","cpe":"cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-NANOID-2332193","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ai/nanoid/pull/328","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23566","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ai/nanoid","tags":["package"],"sources":["ghsa"]}],"credits":["Artyom Arutyunyan"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23566","url":"https://www.cve.org/CVERecord?id=CVE-2021-23566","licence":"CVE Terms of Use","modified":"2025-11-03T21:44:38.677Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qrpm-p2h7-hrv2","url":"https://github.com/advisories/GHSA-qrpm-p2h7-hrv2","licence":"CC-BY-4.0","modified":"2025-11-04T16:35:00.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23566","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23566","licence":"Public domain","modified":"2026-06-17T03:38:49.813Z"}],"updatedAt":"2026-11-25T22:58:06.537Z","epss":{"score":0.00473,"percentile":0.42557,"date":"2026-12-01T12:00:22.000Z"}}