{
  "id": "CVE-2026-67214",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-67214",
  "published_at": "2026-07-29T13:32:02.265Z",
  "title": "nanoid Infinite Loop via Negative Size in non-secure module",
  "vendor": "nanoid_project",
  "product": "nanoid",
  "cvss": {
    "score": 8.2,
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-835",
  "cpes": [
    "cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.2,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "nanoid_project",
        "product": "nanoid",
        "ranges": [
          "\u003e= 4.0.0, \u003c 5.1.16",
          "\u003c 3.3.16"
        ],
        "fixed_in": [
          "5.1.16",
          "3.3.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade nanoid to 5.1.16 or 3.3.16 or later."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://github.com/ai/nanoid/releases/tag/5.1.16"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/ai/nanoid/releases/tag/3.3.16"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
