{"id":"CVE-2021-23566","published":"2022-01-14T20:05:21Z","modified":"2025-11-03T21:44:38Z","title":"Information Exposure","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00473,"percentile":0.33205,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-NANOID-2332193","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/pull/328","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00025.html","tags":[]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":6.64},{"name":"CVSS severity","points":2.8}]},"affectedVersions":[{"vendor":"n/a","product":"nanoid","versions":[">= unspecified, < 3.1.31"]}],"affected":[{"ecosystem":"npm","package":"nanoid","vulnerableRanges":[">=3.0.0, <3.1.31"],"patched":["3.1.31"],"from":["GHSA-qrpm-p2h7-hrv2"],"provenance":"source"}],"summary":{"text":"The nanoid package, versions 3.0.0 up to but not including 3.1.31, contains an information exposure flaw in its valueOf() function that lets someone reproduce the last generated ID. An attacker who can run code locally on the affected system, with no privileges or user interaction required, can exploit this to recover the most recently generated identifier and gain access to whatever that ID protects.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:32Z"},"euvd":{"id":"EUVD-2022-0677","exploited":false,"provenance":"source"}}