CVE catalog

CVE-2026-67213

nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satis

[CVE catalog]

Severity
High · CVSS 8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefinitely, hanging the calling thread. An application that passes an unvalidated, attacker-controlled size of 0 to these functions is exposed to a denial-of-service condition.

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.6fixed
NpmnanoidNot reported5.1.6fixed
CpenanoidNot reported5.1.6fixed
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

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.8+~cs9.3.30-1not yet assignedNot reportedNot reported
Debiannode-postcsssourceforky8.5.8+~cs9.3.30-1not yet assignedNot reportedNot reported
Debiannode-postcsssourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannode-postcsssourcebookworm(unfixed)not yet assignedNot reportedNot reported
NpmnanoidnpmNot reported5.1.6Not reportedGHSA-2V37-7H3G-55P8Not reported
NpmnanoidnpmNot reported5.1.6Not reportedNot reportedNot reported
CpenanoidcpeNot reported5.1.6Not reportedNVD-CVE-2026-67213Not 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