Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-92973 EUVD-2026-81582GHSA-98hw-5x94-6hwv

ansi2html 1.7.0a0 through 1.9.3 Cross-Site Scripting via OSC 8

Published Sep 17, 2026 · Updated Sep 17, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
pycontribs ansi2html 1.7.0a0 – < 1.9.4 1.9.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-ansi2html 1.9.5-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-ansi2html No fix yet —
Ubuntu 26.04 LTS python-ansi2html No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-ansi2html 1.9.5-1.1 openSUSE-SU-2026:11815-1

Advisories 1

References