{"id":"CVE-2021-3377","aliases":["DEBIAN-CVE-2021-3377","GHSA-2v5f-23xc-v9qr","UBUNTU-CVE-2021-3377"],"summary":"The npm package ansi_up converts ANSI escape codes into HTML.","published_at":"2021-01-29T00:00:00Z","modified_at":"2026-10-23T18:03:15.19468Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[{"source":"nuclei-templates","id":"http/cves/2021/CVE-2021-3377","name":"npm ansi_up v4 - Cross-Site Scripting","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3377.yaml","verified":false}],"epss":{"score":0.07632999867200851,"percentile":0.9468700289726257,"date":"2026-11-19T00:00:00Z"},"priority":8.1,"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.","affected_stack":[{"ecosystem":"Red Hat:acm:2","package":"kui-web-terminal-rhel8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3377","relation":"self"}],"affected_other":[{"ecosystem":"Debian:12","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"},{"ecosystem":"Debian:13","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"},{"ecosystem":"Debian:14","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"},{"ecosystem":"NVD","package":"ansi_up_project:ansi_up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"nvd","source":"CVE-2021-3377","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-ansi-up","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"],"provider":"osv","source":"UBUNTU-CVE-2021-3377","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-ansi-up","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"],"provider":"osv","source":"UBUNTU-CVE-2021-3377","relation":"self"},{"ecosystem":"npm","package":"ansi_up","purl":"pkg:npm/ansi_up","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"osv","source":"GHSA-2v5f-23xc-v9qr","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["kui-web-terminal-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-3377"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-3377","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377","license":"CC-BY-4.0","published_at":"2021-03-05T19:03:58Z","modified_at":"2025-11-03T21:44:49.008Z","summary":"The npm package ansi_up converts ANSI escape codes into HTML.","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.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"},{"type":"WEB","url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27"}]},{"provider":"nvd","source_id":"CVE-2021-3377","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377","severity":[],"affected":[{"ecosystem":"NVD","package":"ansi_up_project:ansi_up","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"nvd","source":"CVE-2021-3377","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2021-3377","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-3377","published_at":"2021-03-05T21:15:13.263Z","modified_at":"2026-10-23T18:03:15.19468Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"DEBIAN-CVE-2021-3377"}],"affected":[{"ecosystem":"Debian:12","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"},{"ecosystem":"Debian:13","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"},{"ecosystem":"Debian:14","package":"node-ansi-up","purl":"pkg:deb/debian/node-ansi-up?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+dfsg-1"}]}],"fixed":["5.0.0+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2021-3377","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-3377"}]},{"provider":"osv","source_id":"GHSA-2v5f-23xc-v9qr","relation":"self","url":"https://osv.dev/vulnerability/GHSA-2v5f-23xc-v9qr","license":"CC-BY-4.0","published_at":"2021-03-11T22:50:39Z","modified_at":"2025-11-04T16:33:40Z","summary":"ansi_up cross-site scripting vulnerability","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GHSA-2v5f-23xc-v9qr"}],"affected":[{"ecosystem":"npm","package":"ansi_up","purl":"pkg:npm/ansi_up","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"osv","source":"GHSA-2v5f-23xc-v9qr","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377"},{"type":"WEB","url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27"},{"type":"WEB","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20241108-0002"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2021-3377","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377","license":"CC-BY-SA-4.0","published_at":"2021-03-05T21:15:00Z","modified_at":"2025-10-24T04:49:10Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"UBUNTU-CVE-2021-3377"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2021-3377"}],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"node-ansi-up","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"],"provider":"osv","source":"UBUNTU-CVE-2021-3377","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-ansi-up","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"],"provider":"osv","source":"UBUNTU-CVE-2021-3377","relation":"self"}],"product_status":[],"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"}]},{"provider":"redhat-vex","source_id":"CVE-2021-3377","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-3377","license":"CC-BY-4.0","published_at":"2021-01-29T00:00:00Z","modified_at":"2025-11-03T22:23:08Z","summary":"nodejs-ansi_up: XSS due to insufficient URL sanitization","details":"A flaw was found in npm package ansi_up versions < 5.0.0 when parsing untrusted user input. An attacker could take advantage of this by introducing ANSI escape codes to inject arbitrary HTML and JavaScript in result mounting a cross-site scripting (XSS) attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","source":"CVE-2021-3377"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-3377"}],"affected":[{"ecosystem":"Red Hat:acm:2","package":"kui-web-terminal-rhel8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3377","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["kui-web-terminal-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-3377"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3377.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-3377"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1936427"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377"},{"type":"WEB","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"}]}],"references":[{"type":"WEB","url":"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"},{"type":"WEB","url":"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-3377"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20241108-0002"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3377"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3377.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-3377"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1936427"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-3377","url":"https://www.cve.org/CVERecord?id=CVE-2021-3377","license":"CC-BY-4.0","modified_at":"2025-11-03T21:44:49.008Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-3377","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3377","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2021-3377","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-3377","modified_at":"2026-10-23T18:03:15.19468Z","relation":"self"},{"provider":"osv","source_id":"GHSA-2v5f-23xc-v9qr","url":"https://osv.dev/vulnerability/GHSA-2v5f-23xc-v9qr","license":"CC-BY-4.0","modified_at":"2025-11-04T16:33:40Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2021-3377","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377","license":"CC-BY-SA-4.0","modified_at":"2025-10-24T04:49:10Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-3377","url":"https://access.redhat.com/security/cve/CVE-2021-3377","license":"CC-BY-4.0","modified_at":"2025-11-03T22:23:08Z","relation":"self"}]}
