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

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-10-01T20:21:54.408Z
- Modified: 2026-10-02T23:01:22.706Z
- Also known as: GHSA-62ch-8vmq-8xm7
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- patorjk figlet.js: < 1.11.3
- figlet (npm): before 1.11.3

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7> (web)
- <https://github.com/patorjk/figlet.js/pull/169> (web)
- <https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96780> (advisory)
- <https://github.com/patorjk/figlet.js> (package)

## Sources

- CVE List: [CVE-2026-96780](https://www.cve.org/CVERecord?id=CVE-2026-96780), CVE Terms of Use, modified 2026-10-01
- GitHub Advisory Database: [GHSA-62ch-8vmq-8xm7](https://github.com/advisories/GHSA-62ch-8vmq-8xm7), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2026-96780](https://nvd.nist.gov/vuln/detail/CVE-2026-96780), Public domain, modified 2026-10-02

---

Page: https://cve.day/CVE-2026-96780 · Whole record: https://cve.day/CVE-2026-96780.json · Rebuilt by cve.day 2026-11-25T22:59:41.883Z
