CVE-2026-73086: nanoid: Integer Overflow or Wraparound

Published Aug 11, 2026
·
Updated

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.

Affected Software

1 affected component
npm/nanoid>0<=3.3.12, >0<=5.1.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nanoid to a version that resolves this vulnerability.

    Fixed in 3.3.12
  2. Upgrade

    Upgrade nanoid to a version that resolves this vulnerability.

    Fixed in 5.1.11
  3. Operational

    After upgrading nanoid, restart the affected processes so the corrupted process-wide CSPRNG poolOffset in fillPool() is reset; otherwise subsequent session tokens, CSRF tokens, API keys, and unique identifiers may remain the deterministic string "uuuuuuuuuuuuuuuuuuuuu" until restart.

Event History

Aug 11, 2026
CVE Published
via MITRE·04:46 PM
Data Sourced
via MITRE·04:46 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:19 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-73086?

CVE-2026-73086 has a severity rating of high, with a score of 7.4.

2

What causes the vulnerability in CVE-2026-73086?

CVE-2026-73086 is caused by an integer overflow or wraparound in the nanoid(size) function that allows large size parameters to be misrepresented.

3

How do I fix CVE-2026-73086?

To fix CVE-2026-73086, update nanoid to version 3.3.12 or 5.1.11 or later.

4

Who is affected by CVE-2026-73086?

CVE-2026-73086 affects users of the nanoid library prior to versions 3.3.12 and 5.1.11.

5

What are the potential consequences of CVE-2026-73086?

The potential consequences of CVE-2026-73086 include corrupted unique string IDs and possible application logic errors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203