{"id":"CVE-2021-3377","details":"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.","aliases":["GHSA-2v5f-23xc-v9qr"],"modified":"2026-07-09T00:36:35.484525Z","published":"2021-03-05T21:15:13.263Z","references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20241108-0002/"},{"type":"FIX","url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27"},{"type":"EVIDENCE","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/drudru/ansi_up","events":[{"introduced":"0"},{"fixed":"c8c726ed1db979bae4f257b7fa41775155ba2e27"}],"database_specific":{"cpe":"cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.0.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v4.0.4","v4.0.3","v3.0.0","v2.0.2","2.0.1","v1.3.0","v1.2.1","v1.2.0","v1.1.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3377.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}