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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-190
- **Aliases:** GHSA-xwg4-73v4-xw9w
- **Published:** 2026-08-11T16:46:23.024Z
- **Modified:** 2026-10-24T15:10:00.190Z

## Who should check

- Projects that depend on npm package nanoid (\< 3.3.12)
- Anyone running ai nanoid \< 3.3.12; \>= 4.0.0, \< 5.1.11

## Description

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 and fixed versions

- npm `nanoid`: affected \< 3.3.12; fixed 3.3.12, 5.1.11 (osv)
- ai nanoid: \< 3.3.12; \>= 4.0.0, \< 5.1.11 (cvelist)

## Mitigation

- Upgrade nanoid to one of 3.3.12, 5.1.11 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-73086. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-73086.md
Affected: nanoid < 3.3.12
Fixed in: 3.3.12, 5.1.11

Steps:
1. Search this machine and project for nanoid (npm), ai nanoid: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-73086 being exploited?

There is no confirmed exploitation: CVE-2026-73086 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-73086?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-73086?

nanoid \< 3.3.12.

### Is there a fix for CVE-2026-73086?

Yes. Fixed in 3.3.12, 5.1.11. Upgrade nanoid to one of 3.3.12, 5.1.11 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-73086?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ai/nanoid/security/advisories/GHSA-xwg4-73v4-xw9w>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-73086>
- patch: <https://github.com/ai/nanoid/commit/7087969281cab8ba8ae3babf1894e819068b3bb4>
- patch: <https://github.com/ai/nanoid/commit/821dfed7b5db7f88e92f56c60eef32c8135077c3>
- patch: <https://github.com/ai/nanoid/commit/b0036ed60dc9facd7f1191a50dfb3076500202ac>
- other: <https://github.com/ai/nanoid/releases/tag/3.3.12>
- other: <https://github.com/ai/nanoid/releases/tag/5.1.11>
- other: <https://github.com/ai/nanoid>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-73086>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xwg4-73v4-xw9w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-73086> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-73086>
