Vulnerability · Published Sep 17, 2026 · Assigned by VulnCheck
CVE-2026-92973ansi2html 1.7.0a0 through 1.9.3 Cross-Site Scripting via OSC 8
Medium 6.1
In plain English
A medium-severity cross-site scripting in ansi2html from pycontribs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | python-ansi2html | 1.9.5-1 | DEBIAN-CVE-2026-92973 |
| Ubuntu:26.04:LTS | python-ansi2html | no fix listed | UBUNTU-CVE-2026-92973 |
| Ubuntu:26.10 | python-ansi2html | no fix listed | UBUNTU-CVE-2026-92973 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pycontribs | ansi2html | 1.7.0a0 – before 1.9.4 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- Patch Commit patch
- https://github.com/pycontribs/ansi2html/blob/v1.9.3/src/ansi2html/converter.py#L345-L349 technical-description
- https://github.com/pycontribs/ansi2html product
- VulnCheck Advisory: ansi2html 1.7.0a0 through 1.9.3 Cross-Site Scripting via OSC 8 third-party-advisory