{"id":"CVE-2021-3377","aliases":["DEBIAN-CVE-2021-3377","EUVD-2021-0589","GHSA-2v5f-23xc-v9qr","UBUNTU-CVE-2021-3377"],"status":"published","title":"ansi_up cross-site scripting vulnerability","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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.08,"percentile":0.94803,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-03-05T19:03:58Z","modified":"2026-10-23T18:03:15Z","exploits":[{"source":"nuclei","id":"CVE-2021-3377","title":"npm ansi_up v4 - Cross-Site Scripting","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3377.yaml"}],"fixes":[{"ecosystem":"npm","package":"ansi_up","fixed_in":["5.0.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-ansi-up","fixed_in":["5.0.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-ansi-up","fixed_in":["5.0.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-ansi-up","fixed_in":["5.0.0+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ansi_up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-ansi-up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-ansi-up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-ansi-up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"npm","package":"ansi_up","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-ansi-up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.3+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-ansi-up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.0+dfsg-1","5.1.0+dfsg-1"]}],"products":[{"vendor":"ansi_up_project","product":"ansi_up"}],"references":[{"url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377","tags":["advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2v5f-23xc-v9qr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3377","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3377","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3377","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3377","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.","status":"published","published":"2021-03-05T19:03:58Z","modified":"2025-11-03T21:44:49.008Z","updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-0589","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.","status":"published","published":"2021-03-05T19:03:58Z","modified":"2025-11-03T21:44:49Z","updated_at":"2026-11-02T19:49:31.7352Z"}],"ghsa":[{"id":"GHSA-2v5f-23xc-v9qr","title":"ansi_up cross-site scripting vulnerability","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.","status":"published","published":"2021-03-11T22:50:39Z","modified":"2025-11-04T16:33:40Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:39:05.278442Z"}],"nvd":[{"id":"CVE-2021-3377","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.","status":"published","published":"2021-03-05T21:15:13.263Z","modified":"2026-06-17T04:05:00.207Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"CVE-2021-3377","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.","status":"published","published":"2021-03-05T21:15:13.263Z","modified":"2026-10-20T10:53:48.347109649Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3377","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.","status":"published","published":"2021-03-05T21:15:13.263Z","modified":"2026-10-23T18:03:15.1946803Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"GHSA-2v5f-23xc-v9qr","title":"ansi_up cross-site scripting vulnerability","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.","status":"published","published":"2021-03-11T22:50:39Z","modified":"2025-11-04T16:33:40Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"UBUNTU-CVE-2021-3377","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.","status":"published","published":"2021-03-05T21:15:00Z","modified":"2025-10-24T04:49:10Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"}]}}
