{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-23566","published":"2022-01-14T20:15:10.093000Z","last_modified":"2026-06-17T03:38:49.813000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-704"],"cpes":[{"criteria":"cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*","part":"a","vendor":"nanoid_project","product":"nanoid","version_start_including":"3.0.0","version_end_excluding":"3.1.31"}],"cpes_truncated":false,"vendors":["nanoid_project"],"products":["nanoid_project/nanoid"],"epss":{"score":0.00473,"percentile":0.42557,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-qrpm-p2h7-hrv2","ecosystem":"npm","name":"nanoid","purl":"pkg:npm/nanoid","ranges":[{"introduced":"3.0.0","fixed":"3.1.31"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-23566/","html_en":"/en/cve/CVE-2021-23566/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23566","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23566"},"untrusted":{"vendor_name":"Nanoid Project","product_name":"Nanoid","desc_en":"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.","affected":[],"references":[{"url":"https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/ai/nanoid/pull/328","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550","tags":["Exploit","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-NANOID-2332193","tags":["Exploit","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html","tags":[]}]}}