{"answers":{"affected":"4 open source packages ship an affected version, including nanoid. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-67214 in the wild and no public exploit code.","fix":"Upgrade nanoid to a fixed version for your release line: 3.3.16 or 5.1.16.","what":"CVE-2026-67214 is a high-severity denial of service vulnerability in nanoid_project nanoid, published on 29 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-67214 and fix it if it is affected.\n\nWhat it is: CVE-2026-67214 is a high-severity denial of service vulnerability in nanoid_project nanoid, published on 29 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-67214 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nanoid (npm): affected all versions; fixed in 3.3.16\n- nanoid (npm): affected all versions; fixed in 3.3.16\n- nanoid (npm): affected from 4.0.0; fixed in 5.1.16\n- nanoid (npm): affected from 4.0.0; fixed in 5.1.16\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-67214/ (Markdown: https://insights.sbomify.com/CVE-2026-67214/index.md)","id":"CVE-2026-67214","markdown":"https://insights.sbomify.com/CVE-2026-67214/index.md","name":"CVE-2026-67214","record":{"aliases":["CLEANSTART-2026-DG52201","CLEANSTART-2026-EO79562","CLEANSTART-2026-WC95670","CLSA-2026-1790622758","CLSA-2026-1790622992","CLSA-2026-1790673732","CLSA-2026-1791626479","CLSA-2026-1792232027","DEBIAN-CVE-2026-67214","ECHO-a5ce-1e92-8d02","GHSA-28wg-ghj8-5hjv","MINI-3jmg-cr7m-h63f","MINI-4xgr-fqp8-f345","MINI-5966-f9h6-838p","MINI-7q77-93j3-w8q2","MINI-7x3w-fg39-mq6q","MINI-c347-f6w8-gwqc","MINI-c424-8524-795h","MINI-c58j-8mx3-c5pm","MINI-h7hq-x4vq-pcq6","MINI-hm2q-mf97-xj6r","MINI-jf77-w6hq-582g","MINI-jf8g-pvhh-mc6w","MINI-jfvc-m564-c2x5","MINI-mpq4-w9qj-37h2","MINI-mvmh-6623-7f7m","MINI-qp7p-fcgv-qqgv","MINI-r4g9-7p82-6vmh","MINI-r98q-rc65-gh93","MINI-rj72-gw83-x6xh","MINI-w4jj-q2p3-ggx8","MINI-x32j-j6jq-4m4c","RHSA-2026:48320","ROOT-APP-NPM-CVE-2026-67214","UBUNTU-CVE-2026-67214"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript ID library","requires_auth":"none","summary":"An attacker can cause a denial of service by passing a negative size to nanoid's non-secure module, triggering an infinite loop.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"nanoid","vendor":"nanoid_project"}],"cvss":{"score":8.2,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"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.","ecosystems":["Red Hat:hummingbird:1","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"nanoid Infinite Loop via Negative Size in non-secure module","id":"CVE-2026-67214","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":5,"n_references":4,"next":{"headline":"cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion","id":"CVE-2026-67215"},"packages":[{"ecosystem":"npm","fixed":["3.3.16"],"introduced":["0"],"last_affected":[],"package":"nanoid","purl":null,"source":"GHSA-28wg-ghj8-5hjv"},{"ecosystem":"npm","fixed":["3.3.16"],"introduced":["0"],"last_affected":[],"package":"nanoid","purl":"pkg:npm/nanoid","source":"GHSA-28wg-ghj8-5hjv"},{"ecosystem":"npm","fixed":["5.1.16"],"introduced":["4.0.0"],"last_affected":[],"package":"nanoid","purl":null,"source":"GHSA-28wg-ghj8-5hjv"},{"ecosystem":"npm","fixed":["5.1.16"],"introduced":["4.0.0"],"last_affected":[],"package":"nanoid","purl":"pkg:npm/nanoid","source":"GHSA-28wg-ghj8-5hjv"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.20.0-0.7.hum1"],"introduced":["0"],"last_affected":[],"package":"jaeger","purl":"pkg:rpm/redhat/jaeger","source":"RHSA-2026:48320"}],"prev":{"headline":"nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom","id":"CVE-2026-67213"},"products":["nanoid"],"published":"2026-07-29","related":[{"cvss_score":8.2,"headline":"nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom","id":"CVE-2026-67213","kev_date_added":null,"published":"2026-07-29"},{"cvss_score":4,"headline":"Information Exposure","id":"CVE-2021-23566","kev_date_added":null,"published":"2022-01-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["nanoid_project"]},"summary":"An attacker can cause a denial of service by passing a negative size to nanoid's non-secure module, triggering an infinite loop.","url":"https://insights.sbomify.com/CVE-2026-67214/"}