CVE catalog

CVE-2021-3377

node-ansi-up affected and fixed versions

[CVE catalog]

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.

Severity
Medium · CVSS 4.6CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
8.00% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixienode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debiantrixienode-ansi-up5.1.0+dfsg-2Fixed[CVE-2021-3377]
Debiansidnode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debiansidnode-ansi-up5.1.0+dfsg-4Fixed[CVE-2021-3377]
Debianforkynode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debianforkynode-ansi-up5.1.0+dfsg-4Fixed[CVE-2021-3377]
Debianbookwormnode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debianbookwormnode-ansi-up5.1.0+dfsg-2Fixed[CVE-2021-3377]

Showing 8 fix observations. All 11 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormnode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debianbookwormnode-ansi-up5.1.0+dfsg-2Fixed[CVE-2021-3377]
Debianforkynode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debianforkynode-ansi-up5.1.0+dfsg-4Fixed[CVE-2021-3377]
Debiansidnode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debiansidnode-ansi-up5.1.0+dfsg-4Fixed[CVE-2021-3377]
Debiantrixienode-ansi-up5.0.0+dfsg-1FixedDistribution-reported fixed boundary[CVE-2021-3377]
Debiantrixienode-ansi-up5.1.0+dfsg-2Fixed[CVE-2021-3377]
Ubuntu20.04node-ansi-up4.0.3+dfsg-2UnknownSource applicability is not established[UBUNTU-CVE-2021-3377]
Ubuntu22.04node-ansi-up5.0.0+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2021-3377]
Ubuntu22.04node-ansi-up5.1.0+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2021-3377]
Original provider fields
{
  "package_releases": [
    {
      "name": "node-ansi-up",
      "status": "fixed",
      "release": "sid",
      "version": "5.1.0+dfsg-4"
    },
    {
      "name": "node-ansi-up",
      "status": "fixed",
      "release": "forky",
      "version": "5.1.0+dfsg-4"
    },
    {
      "name": "node-ansi-up",
      "status": "fixed",
      "release": "trixie",
      "version": "5.1.0+dfsg-2"
    },
    {
      "name": "node-ansi-up",
      "status": "fixed",
      "release": "bookworm",
      "version": "5.1.0+dfsg-2"
    }
  ],
  "fixed_versions": [
    {
      "bug": 984667,
      "name": "node-ansi-up",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "5.0.0+dfsg-1"
    },
    {
      "bug": 984667,
      "name": "node-ansi-up",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "5.0.0+dfsg-1"
    },
    {
      "bug": 984667,
      "name": "node-ansi-up",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "5.0.0+dfsg-1"
    },
    {
      "bug": 984667,
      "name": "node-ansi-up",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "5.0.0+dfsg-1"
    }
  ],
  "distribution_packages": [
    {
      "name": "node-ansi-up",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "4.0.3+dfsg-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-3377",
      "provider_updated_at": "2025-10-24T04:49:10Z",
      "applicability_unknown": true
    },
    {
      "name": "node-ansi-up",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "5.0.0+dfsg-1",
        "5.1.0+dfsg-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-3377",
      "provider_updated_at": "2025-10-24T04:49:10Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #984667]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libjs-ansi-up]Unknown

    Source package: [node-ansi-up]

    Details (2)
    • 5.1.0+dfsg-2 · all · bookworm

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12

    • 5.1.0+dfsg-2 · all · bookworm

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12

  • [node-ansi-up]Unknown
    Details (2)
    • 5.1.0+dfsg-2 · all · bookworm

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12

    • 5.1.0+dfsg-2 · all · bookworm

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12

[Debian 13 (Trixie)]

  • [libjs-ansi-up]Unknown

    Source package: [node-ansi-up]

    Details (2)
    • 5.1.0+dfsg-2 · all · trixie

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · 13

    • 5.1.0+dfsg-2 · all · trixie

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · 13

  • [node-ansi-up]Unknown
    Details (2)
    • 5.1.0+dfsg-2 · all · trixie

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · 13

    • 5.1.0+dfsg-2 · all · trixie

      Fixed · Fixed: 5.0.0+dfsg-1

      dsa · node-ansi-up · debian · 13

Observed:

References