{"id":"CVE-2026-73086","published":"2026-08-11T16:46:23Z","modified":"2026-08-12T14:29:36Z","title":"nanoid: Integer Overflow or Wraparound","vendor":"ai","product":"nanoid","tier":"tail","description":{"text":"nanoid is a secure, URL-friendly, unique string ID generator for JavaScript. Prior to versions 3.3.12 and 5.1.11, the nanoid(size) function in index.js and index.cjs coerces the user-influenced size parameter to a signed 32-bit integer, allowing a value of 2147483648 to become -2147483648 and corrupt the process-wide CSPRNG poolOffset in fillPool(), which causes subsequent session tokens, CSRF tokens, API keys, and unique identifiers to become the deterministic string \"uuuuuuuuuuuuuuuuuuuuu\" until the process restarts. This issue is fixed in versions 3.3.12 and 5.1.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00296,"percentile":0.22826,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ai/nanoid/security/advisories/GHSA-xwg4-73v4-xw9w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ai/nanoid/commit/7087969281cab8ba8ae3babf1894e819068b3bb4","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/commit/821dfed7b5db7f88e92f56c60eef32c8135077c3","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/commit/b0036ed60dc9facd7f1191a50dfb3076500202ac","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/releases/tag/3.3.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/ai/nanoid/releases/tag/5.1.11","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":4.57},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"ai","affectedVersions":[{"vendor":"ai","product":"nanoid","versions":["< 3.3.12",">= 4.0.0, < 5.1.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-12T14:26:22.656696Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"nanoid","vulnerableRanges":["<3.3.12",">=4.0.0, <5.1.11"],"patched":["3.3.12","5.1.11"],"from":["GHSA-xwg4-73v4-xw9w"],"provenance":"source"}],"summary":{"text":"The nanoid JavaScript ID generator, in its nanoid(size) function within index.js and index.cjs, coerces the size parameter to a signed 32-bit integer, so a value of 2147483648 wraps to -2147483648 and corrupts the process-wide random pool offset used by fillPool(). An attacker who can influence the size parameter over the network, without authentication or user interaction, can cause all subsequently generated tokens and identifiers in that process, such as session, CSRF and API keys, to become the deterministic string \"uuuuuuuuuuuuuuuuuuuuu\" until the process restarts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:50Z"},"euvd":{"id":"EUVD-2026-56554","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nanoid-project-nanoid-cve-2026-67213","parents":[{"from":"CVE-2026-67213","to":"CVE-2026-73086","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:nanoid","fromFixed":"5.1.6","toFixed":"5.1.11","daysApart":13},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7","https://github.com/ai/nanoid/commit/e10f8d40ce9d1ab47f66d65a16b48086432730d0","https://github.com/ai/nanoid/commit/7087969281cab8ba8ae3babf1894e819068b3bb4","https://github.com/ai/nanoid/commit/821dfed7b5db7f88e92f56c60eef32c8135077c3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-23566","published":"2022-01-14","fixed":"3.1.31","kev":false},{"cve":"CVE-2024-55565","published":"2024-12-09","fixed":"5.0.9","kev":false,"link":{"from":"CVE-2024-55565","to":"CVE-2026-73086","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:nanoid","fromFixed":"3.3.8","toFixed":"3.3.12","daysApart":610}]}},{"cve":"CVE-2026-67213","published":"2026-07-29","fixed":"5.1.6","kev":false},{"cve":"CVE-2026-73086","published":"2026-08-11","fixed":"5.1.11","kev":false},{"cve":"CVE-2026-67214","published":"2026-07-29","fixed":"5.1.16","kev":false}],"package":"npm:nanoid"}}