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.
이 버전이 영향받나요?
사용 중인 패키지 버전을 입력하면 즉시 평가합니다.
영향 패키지
참고
- https://nvd.nist.gov/vuln/detail/CVE-2026-67214 [ADVISORY]
- https://github.com/ai/nanoid/pull/600 [WEB]
- https://github.com/ai/nanoid/pull/601 [WEB]
- https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49 [WEB]
- https://github.com/ai/nanoid/commit/e835c9b71eab832bc6106944bdd26ea96cf2c66d [WEB]
- https://github.com/ai/nanoid [PACKAGE]
- https://github.com/ai/nanoid/releases/tag/5.1.16 [WEB]
- https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module [WEB]