{"schema":"threatline.record/2","record":{"id":"CVE-2026-96780","aliases":["GHSA-62ch-8vmq-8xm7"],"summary":"figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width","details":"### 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.","categories":["Libraries & packages"],"product":"figlet","vendor":"patorjk","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-62ch-8vmq-8xm7","source_modified_at":"2026-10-02T22:39:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"figlet"},"range":"< 1.11.3"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-96780","source_modified_at":"2026-10-01T20:40:30.208Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"figlet.js","vendor":"patorjk","versions":[{"status":"affected","version":"< 1.11.3"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-62ch-8vmq-8xm7","source_modified_at":"2026-10-02T23:01:22.706221290Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"figlet","ecosystem":"npm","purl":"pkg:npm/figlet"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.11.3"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-62ch-8vmq-8xm7","source_modified_at":"2026-10-02T22:39:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"figlet"},"version":"1.11.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-62ch-8vmq-8xm7","source_modified_at":"2026-10-02T23:01:22.706221290Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"figlet","ecosystem":"npm","purl":"pkg:npm/figlet"},"version":"1.11.3"}],"cvss":8.2,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00405,"percentile":0.33694,"score_date":"2026-10-23"},"published_at":"2026-10-01T20:21:54.408Z","modified_at":"2026-10-02T23:01:22.706221290Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-62ch-8vmq-8xm7","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-02T22:39:17Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-96780","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-01T20:40:30.208Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-62ch-8vmq-8xm7","fetched_at":"2026-10-23T18:52:38.922436Z","source_modified_at":"2026-10-02T23:01:22.706221290Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-96780","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/patorjk/figlet.js/security/advisories/GHSA-62ch-8vmq-8xm7","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96780","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/patorjk/figlet.js/pull/169","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/patorjk/figlet.js/commit/cb2839d0e53aeafbd361e9587abc72e49e41cbb3","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-62ch-8vmq-8xm7","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-01T20:40:21.395217Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-02T23:01:22.706221290Z","content_hash":"e383902f2a53a8203757b7260c3689b02658e8b6106b99fbc71e9fb93378c824"}}
