CVE-2021-3377

MEDIUM6.1EPSS 59.2%

ansi_up cross-site scripting vulnerability

Published: 3/11/2021Modified: 11/4/2025
Also known as:GHSA-2v5f-23xc-v9qr

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.

Affected packages (2)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References (5)