{"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-67213 in the wild and no public exploit code.","fix":"Upgrade nanoid to a fixed version for your release line: 3.3.18 or 5.1.6.","what":"CVE-2026-67213 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-67213 and fix it if it is affected.\n\nWhat it is: CVE-2026-67213 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-67213 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nanoid (npm): affected all versions; fixed in 3.3.18\n- nanoid (npm): affected all versions; fixed in 3.3.18\n- nanoid (npm): affected from 4.0.0; fixed in 5.1.6\n- nanoid (npm): affected from 4.0.0; fixed in 5.1.6\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-67213/ (Markdown: https://insights.sbomify.com/CVE-2026-67213/index.md)","id":"CVE-2026-67213","markdown":"https://insights.sbomify.com/CVE-2026-67213/index.md","name":"CVE-2026-67213","record":{"aliases":["CLEANSTART-2026-EK72543","CLEANSTART-2026-EO53027","CLEANSTART-2026-SY32977","CLSA-2026-1791200139","CLSA-2026-1791208139","CLSA-2026-1791208360","CLSA-2026-1791282749","DEBIAN-CVE-2026-67213","ECHO-4872-5a8d-5e5f","GHSA-2v37-7h3g-55p8","MINI-2fvm-q397-p484","MINI-3qxx-r2x8-w543","MINI-453m-8ffh-cgc2","MINI-5f7g-qfh6-fj6q","MINI-65jg-99h7-8w43","MINI-65rw-f2gr-fh5c","MINI-6jh5-fh5x-cwmh","MINI-79vq-m7h7-cwqj","MINI-7r22-xhgh-gjm4","MINI-8vqp-j35j-3rrp","MINI-9q65-7j29-gwhh","MINI-hgg3-774m-c38r","MINI-j589-c252-hc9r","MINI-jv49-7998-f4cf","MINI-qp8m-r692-jg46","MINI-qpj7-c985-p9cq","MINI-qwpj-gfvh-2c7g","MINI-rgpx-mqwh-x659","MINI-vvc6-7w8v-x365","MINI-xf26-83fx-r73q","RHSA-2026:47614","ROOT-APP-NPM-CVE-2026-67213","UBUNTU-CVE-2026-67213"],"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 size of zero to nanoid's custom generation functions, hanging the application thread.","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 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefinitely, hanging the calling thread. An application that passes an unvalidated, attacker-controlled size of 0 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 before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom","id":"CVE-2026-67213","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":5,"n_references":3,"next":{"headline":"nanoid Infinite Loop via Negative Size in non-secure module","id":"CVE-2026-67214"},"packages":[{"ecosystem":"npm","fixed":["3.3.18"],"introduced":["0"],"last_affected":[],"package":"nanoid","purl":null,"source":"GHSA-2v37-7h3g-55p8"},{"ecosystem":"npm","fixed":["3.3.18"],"introduced":["0"],"last_affected":[],"package":"nanoid","purl":"pkg:npm/nanoid","source":"GHSA-2v37-7h3g-55p8"},{"ecosystem":"npm","fixed":["5.1.6"],"introduced":["4.0.0"],"last_affected":[],"package":"nanoid","purl":null,"source":"GHSA-2v37-7h3g-55p8"},{"ecosystem":"npm","fixed":["5.1.6"],"introduced":["4.0.0"],"last_affected":[],"package":"nanoid","purl":"pkg:npm/nanoid","source":"GHSA-2v37-7h3g-55p8"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.20.0-0.6.hum1"],"introduced":["0"],"last_affected":[],"package":"jaeger","purl":"pkg:rpm/redhat/jaeger","source":"RHSA-2026:47614"}],"prev":{"headline":"Apache OpenNLP: OOM DoS via Unbounded Array Allocation in SymSpellModelSerializer","id":"CVE-2026-67211"},"products":["nanoid"],"published":"2026-07-29","related":[{"cvss_score":8.2,"headline":"nanoid Infinite Loop via Negative Size in non-secure module","id":"CVE-2026-67214","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-08","vendors":["nanoid_project"]},"summary":"An attacker can cause a denial of service by passing a size of zero to nanoid's custom generation functions, hanging the application thread.","url":"https://insights.sbomify.com/CVE-2026-67213/"}