CVE-2026-96780: figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width

Published Oct 1, 2026
·
Updated

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 Software

1 affected component
npm/figlet<1.11.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade figlet to a version that resolves this vulnerability.

    Fixed in 1.11.3

Event History

Oct 1, 2026
CVE Published
via MITRE·08:21 PM
Data Sourced
via MITRE·08:21 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Deployments using figlet.js before 1.11.3 are exposed only if they enable the non-default whitespaceBreak option and allow an attacker-controlled width to reach text() or textSync().

2

What input conditions are needed to trigger the issue?

WhitespaceBreak must be enabled and the supplied width must be smaller than the rendered width of a single FIGlet character. Under those conditions, processing can repeatedly handle the same input without consuming characters.

3

What is the impact if exploitation succeeds?

The affected call can enter an unbounded loop, consuming CPU and growing memory. This can cause denial of service for the process handling the request or input.

4

What should be done if an immediate upgrade is not possible?

Do not enable whitespaceBreak for affected calls, and prevent attacker-controlled widths from reaching text() or textSync(). Ensure any width used with whitespaceBreak is not smaller than the rendered width of a single FIGlet character.

5

How is the issue fixed?

Upgrade figlet.js to version 1.11.3, which fixes the unbounded-loop condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203