{"id":"UBUNTU-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.","modified":"2025-10-24T04:49:10Z","published":"2021-03-05T21:15:00Z","upstream":["CVE-2021-3377"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3377"},{"type":"REPORT","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"},{"type":"REPORT","url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377"}],"affected":[{"package":{"name":"node-ansi-up","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-up@4.0.3+dfsg-2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.3+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-ansi-up","binary_version":"4.0.3+dfsg-2"},{"binary_name":"node-ansi-up","binary_version":"4.0.3+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3377.json"}},{"package":{"name":"node-ansi-up","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-up@5.1.0+dfsg-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.0+dfsg-1","5.1.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-ansi-up","binary_version":"5.1.0+dfsg-1"},{"binary_version":"5.1.0+dfsg-1","binary_name":"node-ansi-up"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3377.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}