Vulnerability library
Security checkNovember 04, 2025

ansi_up cross-site scripting vulnerability

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

Medium severitynpmansi_up

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The npm package ansi_up converts ANSI escape codes into HTML. In ansi_up v4, ANSI escape codes can be used to create HTML hyperlinks. Due to insufficient URL sanitization, this feature is affected by a cross-site scripting (XSS) vulnerability. This issue is fixed in v5.0.0.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for ansi_up cross-site scripting vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 04, 2025