{"id":"CVE-2026-96780","published":"2026-10-01T20:21:54Z","modified":"2026-10-01T20:40:30Z","title":"figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width","vendor":"patorjk","product":"figlet.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00507,"percentile":0.36415,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patorjk/figlet.js/pull/169","tags":["x_refsource_MISC"]},{"url":"https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":7.28},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"patorjk","affectedVersions":[{"vendor":"patorjk","product":"figlet.js","versions":["< 1.11.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-01T20:40:21.395217Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"figlet","vulnerableRanges":["<1.11.3"],"patched":["1.11.3"],"from":["GHSA-62ch-8vmq-8xm7"],"provenance":"source"}],"summary":{"text":"The figlet.js library (patorjk's FIG driver for JavaScript) has an infinite-loop flaw in its text() and textSync() functions, which fail to terminate when the whitespaceBreak option is enabled and the width is smaller than a single rendered character. An attacker who can reach an affected call with a non-default whitespaceBreak setting and a width they control can cause unbounded CPU consumption and memory growth, resulting in denial of service, without requiring authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:13Z"},"euvd":{"id":"EUVD-2026-91058","exploited":false,"provenance":"source"}}