{"id":"CVE-2026-67214","revision":"75a18e47fc524d88a2853e3751c0f4a4","records":[{"revision":"75a18e47fc524d88a2853e3751c0f4a4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-67214","aliases":[],"title":"nanoid Infinite Loop via Negative Size in non-secure module","description":"nanoid (Nano ID) before 3.3.16 and 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.","state":0,"publishedAt":"2026-07-29T13:32:02.265+00:00","modifiedAt":"2026-10-08T15:24:02.199+00:00","affected":[{"ecosystem":"Vendor product","name":"nanoid","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"nanoid_project\",\n                    \"product\": \"nanoid\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"5.1.16\"\n                        },\n                        {\n                            \"version\": \"5.1.16\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.3.16\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"3.3.16\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/nanoid\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/ai/nanoid/releases/tag/5.1.16","https://github.com/ai/nanoid/releases/tag/3.3.16","https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49","https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-67214","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-67214","identifiers":["CVE-2026-67214"]},"retained":false,"historicalAffected":[]}],"coverage":[]}