CVE-2021-3377

6.1 MEDIUM
Published: March 05, 2021 Modified: November 03, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
Source: cve@mitre.org
Exploit Third Party Advisory
https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory
https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory
https://security.netapp.com/advisory/ntap-20241108-0002/
Source: af854a3a-2127-422b-91ae-364da2661108

5 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.1 / 10.0
EPSS (Exploit Probability)
46.1%
98th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

ansi_up_project