{"id":"CVE-2021-23566","aliases":["GHSA-qrpm-p2h7-hrv2"],"url":"https://o3.security/vulnerability/CVE-2021-23566","summary":"Exposure of Sensitive Information to an Unauthorized Actor in nanoid","details":"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.","published":"2022-01-14T20:15:10.093Z","modified":"2026-08-07T15:13:58.649776Z","cvss":{"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"},"epss":null,"cisaKev":null,"exploitsKnown":4,"affectedPackages":[{"ecosystem":"npm","name":"nanoid","fixedVersion":"3.1.31"}],"fix":{"url":"https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575","label":"ai/nanoid@2b7bd93"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html"},{"type":"FIX","url":"https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575"},{"type":"FIX","url":"https://github.com/ai/nanoid/pull/328"},{"type":"EVIDENCE","url":"https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444"},{"type":"EVIDENCE","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550"},{"type":"EVIDENCE","url":"https://snyk.io/vuln/SNYK-JS-NANOID-2332193"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T15:13:58.649776Z"}}