CVE catalog

CVE-2026-73086

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 p

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.30% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-mochasid12.0.3+~cs20.0.13-3fixed
Debiannode-mochaforky12.0.3+~cs20.0.13-3fixed
Debiannode-mochatrixie10.7.2+ds1+~cs33.1.11-2fixed
Debiannode-mochabookworm10.1.0+ds1+~cs29.3.1-1fixed
Debiannode-postcsssid8.5.31+~cs10.2.26-1fixed
Debiannode-postcssforky8.5.31+~cs10.2.26-1fixed
Debiannode-postcsstrixie8.4.49+~cs9.2.32-1vulnerable
Debiannode-postcssbookworm8.4.20+~cs8.0.23-1+deb12u1vulnerable
NpmnanoidNot reported5.1.11fixed
Ubuntunode-mocha16.041.20.1-1vulnerable
Ubuntunode-mocha16.041.20.1-2vulnerable
Ubuntunode-mocha18.041.20.1-7vulnerable
Ubuntunode-mocha20.044.1.0+ds3-5vulnerable
Ubuntunode-mocha20.047.0.1+ds1-2vulnerable
Ubuntunode-postcss20.046.0.23-1vulnerable
Ubuntunode-postcss20.046.0.23-3vulnerable
Ubuntunode-postcss22.048.2.1+~cs5.3.23-8vulnerable
Ubuntunode-postcss22.048.4.5+~cs7.1.51-2vulnerable
Ubuntunode-postcss22.048.4.6+~cs7.3.21-1vulnerable
Ubuntunode-postcss24.048.4.20+~cs8.0.23-1vulnerable
Ubuntunode-postcss24.048.4.31+~cs8.0.26-1vulnerable
Ubuntunode-postcss26.048.5.6+~cs9.3.28-1vulnerable
Ubuntunode-postcss26.048.5.8+~cs9.3.30-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-mochasourcesid9.1.4+ds1+~cs28.2.8-1not yet assignedNot reportedNot reported
Debiannode-mochasourceforky9.1.4+ds1+~cs28.2.8-1not yet assignedNot reportedNot reported
Debiannode-mochasourcetrixie9.1.4+ds1+~cs28.2.8-1not yet assignedNot reportedNot reported
Debiannode-mochasourcebookworm9.1.4+ds1+~cs28.2.8-1not yet assignedNot reportedNot reported
Debiannode-postcsssourcesid8.5.14+~cs9.3.34-1not yet assignedNot reportedNot reported
Debiannode-postcsssourceforky8.5.14+~cs9.3.34-1not yet assignedNot reportedNot reported
Debiannode-postcsssourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannode-postcsssourcebookworm(unfixed)not yet assignedNot reportedNot reported
NpmnanoidnpmNot reported5.1.11Not reportedGHSA-XWG4-73V4-XW9WNot reported

Notes

[trixie] node-postcss: Minor issue [bookworm] node-postcss: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-postcss]Affected
    Details (2)
    • 8.4.20+~cs8.0.23-1+deb12u1 · all · bookworm

      Affected

      nvd · node-postcss · debian · bookworm; nvd · node-postcss · debian · 12

    • 8.4.20+~cs8.0.23-1+deb12u1 · all · bookworm

      Affected

      nvd · node-postcss · debian · bookworm; nvd · node-postcss · debian · 12

  • [mocha]Fixed

    Source package: [node-mocha]

    Details (2)
    • 10.1.0+ds1+~cs29.3.1-1 · all · bookworm

      Fixed · Fixed: 9.1.4+ds1+~cs28.2.8-1

      nvd · node-mocha · debian · bookworm; nvd · node-mocha · debian · 12

    • 10.1.0+ds1+~cs29.3.1-1 · all · bookworm

      Fixed · Fixed: 9.1.4+ds1+~cs28.2.8-1

      nvd · node-mocha · debian · bookworm; nvd · node-mocha · debian · 12

[Debian 13 (Trixie)]

  • [node-postcss]Affected
    Details (2)
    • 8.4.49+~cs9.2.32-1 · all · trixie

      Affected

      nvd · node-postcss · debian · 13

    • 8.4.49+~cs9.2.32-1 · all · trixie

      Affected

      nvd · node-postcss · debian · 13

  • [mocha]Fixed

    Source package: [node-mocha]

    Details (2)
    • 10.7.2+ds1+~cs33.1.11-2 · all · trixie

      Fixed · Fixed: 9.1.4+ds1+~cs28.2.8-1

      nvd · node-mocha · debian · 13

    • 10.7.2+ds1+~cs33.1.11-2 · all · trixie

      Fixed · Fixed: 9.1.4+ds1+~cs28.2.8-1

      nvd · node-mocha · debian · 13

Observed:

References