GitHub Advisoryadvisory · npm
GHSA-2v5f-23xc-v9qr ansi_up cross-site scripting vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2021-3377
- Ecosystem
- npm
- Packages
- ansi_up
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2021-03-11
Affected packages
• npm ansi_up: < 5.0.0 → fixed in 5.0.0
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.
Related
Alias · CVE (1)
- CVE-2021-3377 The npm package ansi_up converts ANSI escape codes into HTML. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness