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.
Remediation
References
https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27
Related Vulnerabilities
CVE-2023-49487 Vulnerability in maven package com.jfinal:jfinal
CVE-2011-4905 Vulnerability in maven package activemq:activemq-core
CVE-2022-45398 Vulnerability in maven package org.zeroturnaround:cluster-stats
CVE-2019-1010091 Vulnerability in maven package org.webjars.npm:tinymce
CVE-2022-43183 Vulnerability in maven package com.xuxueli:xxl-job-core