Skip to content
OpenAdvisories
High · 8.2 CVE-2026-96780 EUVD-2026-91058GHSA-62ch-8vmq-8xm7

figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width

Published Oct 1, 2026 · Updated Oct 1, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
patorjk figlet.js < 1.11.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm figlet < 1.11.3 1.11.3 GHSA-62ch-8vmq-8xm7

References