{"id":"GHSA-62ch-8vmq-8xm7","revision":"2284b64a064049db884dac761d14a7e4","records":[{"revision":"2284b64a064049db884dac761d14a7e4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-62ch-8vmq-8xm7","aliases":["CVE-2026-96780"],"title":"figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width","description":"### Impact\nA denial-of-service (infinite loop) can occur in `text()` / `textSync()` when\n**both**:\n- `whitespaceBreak: true` is set, **and**\n- `width` is set smaller than the rendered width of a single FIGlet character.\nUnder these conditions `breakWord()` could never find a valid break point, so the\nword-wrapping loop in `generateFigTextLines()` never terminated. This pins a CPU\ncore and grows memory without bound, blocking the Node.js event loop.\n\n### Severity\nLow or Medium. Triggering requires a non-default configuration (`whitespaceBreak: true`) and\nan attacker-controlled `width` value reaching `text()`/`textSync()`. This library is typically\nused with fixed options, where this is not\nreachable. Applications that pass an untrusted `width` together with\n`whitespaceBreak` on a request path are affected.\n\n### Patches\nFixed in **figlet 1.11.3**. `breakWord()` now always makes forward progress\n(emitting an over-wide character on its own line), and FIGlet header parsing now\nrejects invalid values (e.g. zero/negative height).\n\n### Workarounds\nDo not expose `width` to untrusted input, or leave `whitespaceBreak` disabled\n(the default), or upgrade to 1.11.3.","state":0,"publishedAt":"2026-10-02T22:39:16+00:00","modifiedAt":"2026-10-02T23:01:22.7062213+00:00","affected":[{"ecosystem":"npm","name":"figlet","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.11.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7","https://nvd.nist.gov/vuln/detail/CVE-2026-96780","https://github.com/patorjk/figlet.js/pull/169","https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3","https://github.com/patorjk/figlet.js"],"sourceUrl":"https://github.com/advisories/GHSA-62ch-8vmq-8xm7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-62ch-8vmq-8xm7","identifiers":["GHSA-62ch-8vmq-8xm7","CVE-2026-96780"]},"retained":false,"historicalAffected":[]}],"coverage":[]}