CVE-2026-96780 Details
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.
A denial-of-service vulnerability has been identified in figlet.js versions prior to 1.11.3. The issue arises in the text() and textSync() functions when the whitespaceBreak option is enabled and the width parameter is set smaller than the rendered width of a single FIGlet character. Under these conditions, the breakWord() function fails to find a valid break point, causing it to return without consuming a character. This results in the generateFigTextLines() function repeatedly processing the same input, leading to excessive CPU usage and memory growth. The vulnerability requires an attacker-controlled width and the non-default whitespaceBreak option to be exploitable.
Users can upgrade to figlet.js version 1.11.3 or later, where this issue has been fixed. Alternatively, the width parameter can be adjusted to a safe value or the whitespaceBreak option can be disabled.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 1, 2026CISA-ADP
Assessed Oct 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3 | [email protected] | Source CodeVendor |
| https://github.com/patorjk/figlet.js/pull/169 | [email protected] | Issue TrackingVendor |
| https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| patorjk figlet.js | < 1.11.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 1, 2026 | New CVE Received | [email protected] |
| Oct 1, 2026 | CVE Modified | CISA-ADP |
Volerion