ADVISORIES

Vulnerability

CVE-2021-3377

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.

3 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Debian 1Ubuntu 1npm 1

Advisories

  • DEBIAN-CVE-2021-3377

    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…

    CVE-2021-3377 Debian Updated 23 October 2026
  • GHSA-2v5f-23xc-v9qr

    ansi_up cross-site scripting vulnerability

    Moderate CVE-2021-3377 npm Updated 4 November 2025
  • UBUNTU-CVE-2021-3377

    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…

    CVE-2021-3377 Ubuntu Updated 24 October 2025

References