XSS in Ansi Up Project
CVE-2021-3377
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.080 (94.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Ansi_up_project Ansi_up
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2021-3377?
- CVE-2021-3377 is a medium-severity vulnerability in Ansi Up Project, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2021-03-05.
- How severe is CVE-2021-3377?
- Medium severity. CVSS v3 base score is 6.1 out of 10.
- Is CVE-2021-3377 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.