{"id":"CVE-2021-3377","published":"2021-03-05T19:03:58Z","modified":"2025-11-03T21:44:49Z","title":"The npm package ansi_up converts ANSI escape codes into HTML","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07633,"percentile":0.94703,"provenance":"source"},"cwes":[],"references":[{"url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf","tags":["x_refsource_MISC"]},{"url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","tags":[]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.94},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"nuclei":[{"id":"CVE-2021-3377","name":"npm ansi_up v4 - Cross-Site Scripting","severity":"medium","path":"http/cves/2021/CVE-2021-3377.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3377.yaml"}],"provenance":"source"},"affected":[{"ecosystem":"npm","package":"ansi_up","vulnerableRanges":["<5.0.0"],"patched":["5.0.0"],"from":["GHSA-2v5f-23xc-v9qr"],"provenance":"source"}],"summary":{"text":"The npm package ansi_up, which converts ANSI escape codes into HTML, contains a cross-site scripting flaw in its hyperlink-generation feature in v4, where insufficient URL sanitization lets malicious escape codes produce HTML links.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:17Z"},"euvd":{"id":"EUVD-2021-0589","exploited":false,"provenance":"source"}}