Vulnerability library
Security checkOctober 02, 2026

figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmfiglet

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the figlet package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.11.3
  • Patched version(s): 1.11.3

References

Could your website be exposed too?

SmartScanner can check your website for figlet is vulnerable to denial of service via unbounded loop when whitespaceBreak is used with a small width and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 02, 2026