---
id: CVE-2026-96780
title: >-
  figlet.js is a FIG driver written in JavaScript that aims to implement the
  FIGfont specification
summary: >-
  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 w…
severity: high
cvss: 8.2
cvssVector: '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'
cwe:
  - CWE-835
vendor: patorjk
product: figlet.js
affected:
  - figlet.js < 1.11.3
published: '2026-10-01'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T21:17:26.207'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-96780'
references:
  - url: >-
      https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3
    label: security-advisories@github.com
  - url: 'https://github.com/patorjk/figlet.js/pull/169'
    label: security-advisories@github.com
  - url: >-
      https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-01T20:40:21.395217Z'
cvssSource: cna
ingestedAt: '2026-10-01T21:00:32.268Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
