{"cve":"CVE-2021-23566","nvd":{"published":"2022-01-14T20:15:10.093","modified":"2026-06-17T03:38:49.813","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-704"],"references":["https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444","https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575","https://github.com/ai/nanoid/pull/328","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550","https://snyk.io/vuln/SNYK-JS-NANOID-2332193"],"products":["nanoid_project:nanoid"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2021-23566","score":0.0044,"percentile":0.38258,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-qrpm-p2h7-hrv2","url":"https://osv.dev/vulnerability/GHSA-qrpm-p2h7-hrv2","summary":"Exposure of Sensitive Information to an Unauthorized Actor in nanoid","modified":"2025-11-04T16:35:00Z","packages":[{"ecosystem":"npm","name":"nanoid","purl":"pkg:npm/nanoid","ranges":[">=3.0.0 <3.1.31"],"fixed":["3.1.31"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}