Intel

AIKIDO-2026-148507

nanoid is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 13, 2026

59

Medium Risk

This Affects:

JSnanoid
3.1.9 - 3.3.17
Fixed in 3.3.18
Are you affected? Scan for Free

TL;DR

nanoid React Native async customAlphabet can hang when given a non-positive size. The generator keeps requesting random bytes and never finishes building the ID. Apps that pass an unvalidated size into this helper can be denied service. The fix returns an empty string when size is 0 or less.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you call React Native async customAlphabet with a size of 0 or less.

Background info

nanoid is vulnerable to Denial of Service (DoS) in versions 3.1.9 - 3.3.17.

How to fix this

Upgrade the nanoid library to the patch version.