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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2v5f-23xc-v9qr ansi_up cross-site scripting vulnerability
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 03 Nov 2025 22:30:00 +0000

Type Values Removed Values Added
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-11-03T21:44:49.008Z

Reserved: 2021-02-01T00:00:00.000Z

Link: CVE-2021-3377

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-03-05T21:15:13.263

Modified: 2025-11-03T22:15:50.327

Link: CVE-2021-3377

cve-icon Redhat

Severity : Moderate

Publid Date: 2021-01-29T00:00:00Z

Links: CVE-2021-3377 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses