Red Hat VEX
RHVEX-CVE-2026-67214
nanoid: nanoid: Denial of Service via negative size input in non-secure module functions
Details
A flaw was found in nanoid (Nano ID), a JavaScript library used for generating unique identifiers. This vulnerability allows an attacker to cause a Denial of Service (DoS) by providing a negative size input to the customAlphabet or nanoid functions within the library's non-secure module. When a negative size is provided, these functions enter an infinite loop, causing the application to hang indefinitely and disrupting service availability.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:9 | grafana | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-67214
- https://bugzilla.redhat.com/show_bug.cgi?id=2508411
- https://www.cve.org/CVERecord?id=CVE-2026-67214
- https://nvd.nist.gov/vuln/detail/CVE-2026-67214
- https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49
- https://github.com/ai/nanoid/releases/tag/5.1.16
- https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module