Quick answers
- Is CVE-2026-73086 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-73086 being exploited in the wild.
- How severe is CVE-2026-73086?
- High severity, with a CVSS score of 7.4, published 11 August 2026.
- Which products and versions are affected?
- nanoid (npm) SEMVER:introduced=0,fixed=3.3.12.
- Is there a fix for CVE-2026-73086?
- Yes. nanoid (npm): upgrade to 3.3.12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-73086 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-73086?
- Check whether you run nanoid (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- nanoid (npm): upgrade to 3.3.12 or later
npm install nanoid@3.3.12
Technical details
The vulnerability is an integer overflow in the size parameter handling at index.js:101. The code coerces size with the bitwise OR operator (size |= 0) to convert it to a signed 32-bit integer. When size >= 2^31 (e.g., 2147483648), this wraps to -2147483648. The negative value is passed to fillPool(), which fails to detect the overflow condition because both bounds checks compare against the negative value. poolOffset becomes deeply negative (~-2.1 billion), causing subsequent ID generation loops to read from undefined array indices. Since undefined & 63 evaluates to 0, every ID becomes the character at alphabet[0] repeated, producing "uuuuuuuuuuuuuuuuuuuuu". The corruption persists across all nanoid() calls in the process until approximately 100 million calls wrap poolOffset back to positive, or the process restarts. No authentication or special privileges are required; a single unauthenticated API request with a crafted size parameter is sufficient to trigger the attack.
Affected products
- ai nanoid < 3.3.12
- ai nanoid >= 4.0.0, < 5.1.11
Identifiers
- CVE-2026-73086
- GHSA-xwg4-73v4-xw9w
Timeline
- 2026-08-03: disclosed: Published by ai/nanoid and GitHub Advisory Database
- 2026-08-03: patched: Patches released: version 3.3.12 and version 5.1.11
- 2026-09-01: advisory: CVE-2026-73086 published to National Vulnerability Database