VDB
EN
MEDIUM 5.9

GHSA-28wg-ghj8-5hjv

nanoid: non-secure generators can loop indefinitely with negative size

빠른 조치

GHSA-28wg-ghj8-5hjv — nanoid: 아래 명령으로 수정 버전으로 올리세요.

npm install nanoid@3.3.16

상세

nanoid (Nano ID) before 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented from a negative value and never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that passes an unvalidated, attacker-controlled negative size to these functions is exposed to a denial-of-service condition.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / nanoid
최초 영향 버전: 0 수정 버전: 3.3.16
수정 npm install nanoid@3.3.16
npm / nanoid
최초 영향 버전: 4.0.0 수정 버전: 5.1.16
수정 npm install nanoid@5.1.16

참고