Vulnerability · Published Aug 11, 2026 · Assigned by GitHub_M

CVE-2026-73086nanoid: Integer Overflow or Wraparound

High 7.4

In plain English

A high-severity integer overflow in nanoid from ai. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.3%top 77.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-mocha9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2026-73086
Debian:13node-mocha9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2026-73086
Debian:14node-mocha9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2026-73086
Debian:12node-postcssno fix listedDEBIAN-CVE-2026-73086
Debian:13node-postcssno fix listedDEBIAN-CVE-2026-73086
Debian:14node-postcss8.5.14+~cs9.3.34-1DEBIAN-CVE-2026-73086
Ubuntu:22.04:LTSnode-postcssno fix listedUBUNTU-CVE-2026-73086
Ubuntu:24.04:LTSnode-postcssno fix listedUBUNTU-CVE-2026-73086
Ubuntu:26.04:LTSnode-postcssno fix listedUBUNTU-CVE-2026-73086
npmnanoid5.1.11GHSA-xwg4-73v4-xw9w
npmnanoid3.3.12GHSA-xwg4-73v4-xw9w

Affected products (as reported)

VendorProductVersions
ai nanoid < 3.3.12>= 4.0.0, < 5.1.11

Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

References