{"id":"CVE-2021-3377","aliases":["CVE-2021-3377","GHSA-2v5f-23xc-v9qr"],"related":[],"kind":"vulnerability","state":"published","title":"ansi_up cross-site scripting vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El paquete npm ansi_up convierte los códigos de escape ANSI en HTML.&#xa0;En ansi_up versión v4, los códigos de escape ANSI pueden ser usados para crear hipervínculos HTML.&#xa0;Debido a un saneamiento insuficiente de la URL, esta funcionalidad está afectada por una vulnerabilidad de tipo cross-site scripting (XSS).&#xa0;Este problema es corregido en versión v5.0.0","source":"nvd"}],"published":"2021-03-05T19:03:58.000Z","modified":"2026-06-17T04:05:00.207Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.0.0"}],"ecosystem":"npm","package":"ansi_up","purl":"pkg:npm/ansi_up","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.0.0"}],"vendor":"ansi_up_project","product":"ansi_up","cpe":"cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377","tags":["advisory"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3377","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377","licence":"CVE Terms of Use","modified":"2025-11-03T21:44:49.008Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2v5f-23xc-v9qr","url":"https://github.com/advisories/GHSA-2v5f-23xc-v9qr","licence":"CC-BY-4.0","modified":"2025-11-04T16:33:40.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3377","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377","licence":"Public domain","modified":"2026-06-17T04:05:00.207Z"}],"updatedAt":"2026-11-25T22:58:00.170Z","epss":{"score":0.07633,"percentile":0.94708,"date":"2026-12-02T12:00:21.000Z"}}