CVE-2026-92973 ansi2html 1.7.0a0 through 1.9.3 Cross-Site Scripting via OSC 8
Attackers can inject malicious scripts via OSC 8 hyperlinks in ANSI text, leading to arbitrary code execution in browsers displaying converted output.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-92973?
CVE-2026-92973 is a medium-severity cross-site scripting vulnerability in pycontribs ansi2html, published on 17 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-92973?
Linux distribution packages (1)
python-ansi2html openSUSE:Tumbleweed | All versions | 1.9.5-1.1 |
How do I fix CVE-2026-92973?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-92973 being exploited?
There is no known exploitation of CVE-2026-92973 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-92973, GHSA-98hw-5x94-6hwv, UBUNTU-CVE-2026-92973, openSUSE-SU-2026:11815-1.