node-mocha: nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions
CVE-2026-67213 is fixed in 6 products on 1 platform, first by DEBIAN-CVE-2026-67213, released July 31, 2026. It is not reported as exploited. Patch Radar priority: High.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| node-mocha · Debian 12.15 (bookworm) | 9.1.4+ds1+~cs28.2.8-1 | DEBIAN-CVE-2026-67213 | Jul 31, 2026 |
| node-mocha · Debian 13.5 (trixie) | 9.1.4+ds1+~cs28.2.8-1 | DEBIAN-CVE-2026-67213 | Jul 31, 2026 |
| node-mocha · Debian 14 | 9.1.4+ds1+~cs28.2.8-1 | DEBIAN-CVE-2026-67213 | Jul 31, 2026 |
| node-postcss · Debian 14 | 8.5.8+~cs9.3.30-1 | DEBIAN-CVE-2026-67213 | Jul 31, 2026 |
| python-jupytext · Fedora 43 | 1.19.6-1.fc43 | FEDORA-2026-3942AB86FD | Oct 5, 2026 |
| python-jupytext-doc · Fedora 43 | 1.19.6-1.fc43 | FEDORA-2026-3942AB86FD | Oct 5, 2026 |
| python3-jupyterlab-jupytext · Fedora 43 | 1.19.6-1.fc43 | FEDORA-2026-3942AB86FD | Oct 5, 2026 |
| python3-jupytext · Fedora 43 | 1.19.6-1.fc43 | FEDORA-2026-3942AB86FD | Oct 5, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.