CVE-2026-96780 · GHSA-62ch-8vmq-8xm7
figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width
- Risk score
- 66/100
- CVSS
- 8.2 v4.0
- Exploit chance (30 days)
- 0.4%
- Published
- 1 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- figlet.js is a FIG driver written in JavaScript that aims to implement the FIGfont specification. Prior to 1.11.3, text() and textSync() can enter an unbounded loop when whitespaceBreak is enabled and width is smaller than the rendered width of a single FIGlet character. Under these conditions, breakWord() cannot find…
- Affected
- figlet (npm) < 1.11.3
- Fix
- Upgrade figlet to 1.11.3 or later.
- Exploitation
- No known exploitation
Why it is Amber
- CVSS 8.2 high
- Remotely exploitable without logging in
- On your watchlist: npm
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| figlet | npm | < 1.11.3 | 1.11.3 |
References
- https://github.com/advisories/GHSA-62ch-8vmq-8xm7
- https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7
- https://nvd.nist.gov/vuln/detail/CVE-2026-96780
- https://github.com/patorjk/figlet.js/pull/169
- https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3
- https://github.com/advisories/GHSA-62ch-8vmq-8xm7
Original description
figlet.js is a FIG driver written in JavaScript that aims to implement the FIGfont specification. Prior to 1.11.3, text() and textSync() can enter an unbounded loop when whitespaceBreak is enabled and width is smaller than the rendered width of a single FIGlet character. Under these conditions, breakWord() cannot find a valid break point and returns without consuming a character, so generateFigTextLines() repeatedly processes the same input while consuming CPU and growing memory. The non-default option and attacker-controlled width must both reach an affected call. This issue is fixed in version 1.11.3.
Last activity 1 Oct 2026. Patch Forecast updates every hour.