🛡️ CVE-2026-67213 on Debian — node-mocha
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.
Distribution advisory
This page covers CVE-2026-67213 as tracked by Debian, for the package node-mocha. The fix is available in version 9.1.4+ds1+~cs28.2.8-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
DEBIAN-CVE-2026-67213 is classified as CWE-835: Infinite Loop. A loop condition can never become false for some inputs, hanging the process.
Affected software
DEBIAN-CVE-2026-67213 is recorded against 2 packages.
- node-mocha (fixed in 9.1.4+ds1+~cs28.2.8-1)
- node-postcss (fixed in 8.5.8+~cs9.3.30-1)
Timeline and source
Published on 29 July 2026 and last revised on 11 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| node-mocha | — | 9.1.4+ds1+~cs28.2.8-1 |
| node-postcss | — | 8.5.8+~cs9.3.30-1 |
References
Similar Threats
- Unknown DEBIAN-CVE-2026-73086
- Unknown DEBIAN-CVE-2026-67214
- Unknown DLA-4013-1
- Unknown DEBIAN-CVE-2024-55565
- Unknown DEBIAN-CVE-2021-23566
Site Security Check
Is node-mocha part of your stack?
DEBIAN-CVE-2026-67213 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.