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)
- Debian/node-ansi-upfrom 0, < 5.0.0+dfsg-1
- npm/ansi_upfrom 0, < 5.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-3377
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-3377
- WEBhttps://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
- WEBhttps://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27
- WEBhttps://security.netapp.com/advisory/ntap-20241108-0002