原始 OSV JSON{
"id": "GHSA-qrpm-p2h7-hrv2",
"aliases": [
"CVE-2021-23566"
],
"details": "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.",
"summary": "Exposure of Sensitive Information to an Unauthorized Actor in nanoid",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.31"
}
]
}
],
"package": {
"name": "nanoid",
"ecosystem": "npm"
}
}
],
"modified": "2025-11-04T16:35:00Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"published": "2022-01-21T23:57:06Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23566",
"type": "ADVISORY"
},
{
"url": "https://github.com/ai/nanoid/pull/328",
"type": "WEB"
},
{
"url": "https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575",
"type": "WEB"
},
{
"url": "https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444",
"type": "WEB"
},
{
"url": "https://github.com/ai/nanoid",
"type": "PACKAGE"
},
{
"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": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-NANOID-2332193",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-704"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-01-14T20:15:00Z",
"github_reviewed_at": "2022-01-18T21:54:04Z"
}
}