Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-67213: nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions

32
Routine
MEDIUM 5.9REMOTEUPGRADE

CVE-2026-67213 is a medium-severity flaw (CVSS 5.9) affecting nanoid. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefinitely, hanging the calling thread. An application that passes an unvalidated, attacker-controlled size of 0 to these functions is exposed to a denial-of-service condition.

Why this priority

  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score5.9 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.3% (top 75%)
CISA exploited listNo
WeaknessCWE-835
Published2026-07-29
Last modified2026-10-23
Publisher (CNA): VulnCheck · Vendor: nanoid project

Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

nanoid project nanoid UPGRADE
Affected: >= 3.0.0 and < 3.3.17 · >= 5.0.0 and < 5.1.6
Fixed in: 3.3.17, 5.1.6
Safe to downgrade to: a release before 3.0.0
1. Check installed version
npm ls nanoid
2. UPGRADE to 3.3.17
npm install nanoid@">=3.3.17"
3. If no update is available yet, DOWNGRADE to a release before 3.0.0
npm view nanoid versions npm install nanoid@"<3.0.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-67213?

nanoid: upgrade to 3.3.17, 5.1.6. Exact commands for each OS are on this page.

Is CVE-2026-67213 being exploited?

CVE-2026-67213 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-67213 affect?

CVE-2026-67213 affects nanoid. Severity is medium (CVSS 5.9). nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefi

How urgent is CVE-2026-67213?

Priority 32/100. Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs