Red Hat VEX
RHVEX-CVE-2026-73086
nanoid: nanoid: Predictable ID generation due to integer overflow
Details
A flaw was found in nanoid, a JavaScript library for generating unique string IDs. A remote attacker could exploit an integer overflow vulnerability by providing a specific input to the nanoid(size) function. This issue causes the internal random number generator to become predictable, leading to the generation of identical identifiers for session tokens, security tokens (Cross-Site Request Forgery (CSRF) tokens), and API keys. Such predictability could allow an attacker to bypass security measures that rely on unique and random identifiers.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | goose | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | goose | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2026-73086
- https://bugzilla.redhat.com/show_bug.cgi?id=2514175
- https://www.cve.org/CVERecord?id=CVE-2026-73086
- https://nvd.nist.gov/vuln/detail/CVE-2026-73086
- 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