All reports
Medium

ansi2html: ansi2html: Cross-Site Scripting via OSC 8 hyperlink handling

Affected versions

Exploitation

CVE-2026-92973

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-21

Description

ansi2html versions 1.7.0a0 through 1.9.3 contain a cross-site scripting vulnerability in OSC 8 hyperlink handling that fails to validate or escape URL targets. Attackers controlling ANSI text input can inject javascript: schemes or terminate href attributes to execute arbitrary scripts in the context of pages displaying converted output.

A flaw was found in ansi2html. This cross-site scripting (XSS) vulnerability exists in the OSC 8 hyperlink handling, where the component fails to properly validate or escape URL targets. A remote attacker, by controlling ANSI text input, can inject malicious JavaScript schemes or manipulate href attributes. This allows for the execution of arbitrary scripts within the context of web pages displaying the converted output, potentially leading to information disclosure or other client-side attacks.