Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. figlet
  4. ›
  5. CVE-2026-96780

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

October 2, 2026

A denial-of-service (infinite loop) can occur in text() / textSync() when both:

  • whitespaceBreak: true is set, and
  • width is set smaller than the rendered width of a single FIGlet character. Under these conditions breakWord() could never find a valid break point, so the word-wrapping loop in generateFigTextLines() never terminated. This pins a CPU core and grows memory without bound, blocking the Node.js event loop.

References

  • github.com/advisories/GHSA-62ch-8vmq-8xm7
  • github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3
  • github.com/patorjk/figlet.js/pull/169
  • github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7
  • nvd.nist.gov/vuln/detail/CVE-2026-96780

Code Behaviors & Features

Detect and mitigate CVE-2026-96780 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.11.3

Fixed versions

  • 1.11.3

Solution

Upgrade to version 1.11.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

npm/figlet/CVE-2026-96780.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:21:49 +0000.