
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
- Severity
- High · CVSS 8.1
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-mocha | sid | 12.0.3+~cs20.0.13-3 | fixed |
| Debian | node-mocha | forky | 12.0.3+~cs20.0.13-3 | fixed |
| Debian | node-mocha | trixie | 10.7.2+ds1+~cs33.1.11-2 | fixed |
| Debian | node-mocha | bookworm | 10.1.0+ds1+~cs29.3.1-1 | fixed |
| Debian | node-postcss | sid | 8.5.31+~cs10.2.26-1 | fixed |
| Debian | node-postcss | forky | 8.5.31+~cs10.2.26-1 | fixed |
| Debian | node-postcss | trixie | 8.4.49+~cs9.2.32-1 | vulnerable |
| Debian | node-postcss | bookworm | 8.4.20+~cs8.0.23-1+deb12u1 | vulnerable |
| Npm | nanoid | Not reported | 5.1.11 | fixed |
| Ubuntu | node-mocha | 16.04 | 1.20.1-1 | vulnerable |
| Ubuntu | node-mocha | 16.04 | 1.20.1-2 | vulnerable |
| Ubuntu | node-mocha | 18.04 | 1.20.1-7 | vulnerable |
| Ubuntu | node-mocha | 20.04 | 4.1.0+ds3-5 | vulnerable |
| Ubuntu | node-mocha | 20.04 | 7.0.1+ds1-2 | vulnerable |
| Ubuntu | node-postcss | 20.04 | 6.0.23-1 | vulnerable |
| Ubuntu | node-postcss | 20.04 | 6.0.23-3 | vulnerable |
| Ubuntu | node-postcss | 22.04 | 8.2.1+~cs5.3.23-8 | vulnerable |
| Ubuntu | node-postcss | 22.04 | 8.4.5+~cs7.1.51-2 | vulnerable |
| Ubuntu | node-postcss | 22.04 | 8.4.6+~cs7.3.21-1 | vulnerable |
| Ubuntu | node-postcss | 24.04 | 8.4.20+~cs8.0.23-1 | vulnerable |
| Ubuntu | node-postcss | 24.04 | 8.4.31+~cs8.0.26-1 | vulnerable |
| Ubuntu | node-postcss | 26.04 | 8.5.6+~cs9.3.28-1 | vulnerable |
| Ubuntu | node-postcss | 26.04 | 8.5.8+~cs9.3.30-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-mocha | source | sid | 9.1.4+ds1+~cs28.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | node-mocha | source | forky | 9.1.4+ds1+~cs28.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | node-mocha | source | trixie | 9.1.4+ds1+~cs28.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | node-mocha | source | bookworm | 9.1.4+ds1+~cs28.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | node-postcss | source | sid | 8.5.14+~cs9.3.34-1 | not yet assigned | Not reported | Not reported |
| Debian | node-postcss | source | forky | 8.5.14+~cs9.3.34-1 | not yet assigned | Not reported | Not reported |
| Debian | node-postcss | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | node-postcss | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Npm | nanoid | npm | Not reported | 5.1.11 | Not reported | GHSA-XWG4-73V4-XW9W | Not 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 · bookwormAffected
nvd · node-postcss · debian · bookworm; nvd · node-postcss · debian · 12
8.4.20+~cs8.0.23-1+deb12u1· all · bookwormAffected
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 · bookwormFixed · Fixed:
9.1.4+ds1+~cs28.2.8-1nvd · node-mocha · debian · bookworm; nvd · node-mocha · debian · 12
10.1.0+ds1+~cs29.3.1-1· all · bookwormFixed · Fixed:
9.1.4+ds1+~cs28.2.8-1nvd · 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 · trixieAffected
nvd · node-postcss · debian · 13
8.4.49+~cs9.2.32-1· all · trixieAffected
nvd · node-postcss · debian · 13
- [mocha]Fixed
Source package: [node-mocha]
Details (2)
10.7.2+ds1+~cs33.1.11-2· all · trixieFixed · Fixed:
9.1.4+ds1+~cs28.2.8-1nvd · node-mocha · debian · 13
10.7.2+ds1+~cs33.1.11-2· all · trixieFixed · Fixed:
9.1.4+ds1+~cs28.2.8-1nvd · node-mocha · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11680-1.json]
- [https://github.com/advisories/GHSA-xwg4-73v4-xw9w]
- [https://github.com/ai/nanoid/commit/7087969281cab8ba8ae3babf1894e819068b3bb4]
- [https://github.com/ai/nanoid/commit/821dfed7b5db7f88e92f56c60eef32c8135077c3]
- [https://github.com/ai/nanoid/commit/b0036ed60dc9facd7f1191a50dfb3076500202ac]
- [https://github.com/ai/nanoid/releases/tag/3.3.12]
- [https://github.com/ai/nanoid/releases/tag/5.1.11]
- [https://github.com/ai/nanoid/security/advisories/GHSA-xwg4-73v4-xw9w]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-73086]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-73086]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-73086]
- [https://security-tracker.debian.org/tracker/CVE-2026-73086]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-73086.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3461.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]