nanoid is vulnerable to Denial of Service (DoS)
59
Medium Risk
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.
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.
nanoid is vulnerable to Denial of Service (DoS) in versions 3.1.9 - 3.3.17.
Upgrade the nanoid library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant