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.
References
| Link | Resource |
|---|---|
| https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf | Exploit Third Party Advisory |
| https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27 | Patch Third Party Advisory |
| https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf | Exploit Third Party Advisory |
| https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27 | Patch Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20241108-0002/ |
Configurations
History
03 Nov 2025, 22:15
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Information
Published : 2021-03-05 21:15
Updated : 2025-11-03 22:15
NVD link : CVE-2021-3377
Mitre link : CVE-2021-3377
CVE.ORG link : CVE-2021-3377
JSON object : View
Products Affected
ansi_up_project
- ansi_up
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
