CVE-2026-92973: ansi2html 1.7.0a0 through 1.9.3 Cross-Site Scripting via OSC 8

Published Sep 17, 2026
·
Updated

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 Software

1 affected component
ansi2html>=1.7.0a0<=1.9.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ansi2html to a version that resolves this vulnerability.

    Fixed in 1.9.3

Event History

Sep 17, 2026
CVE Published
via MITRE·01:43 PM
Data Sourced
via MITRE·01:43 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using ansi2html versions 1.7.0a0 through 1.9.3 are exposed when they convert and display ANSI text that an attacker can control. The risk is in rendered HTML output containing OSC 8 hyperlinks.

2

What does exploitation require?

An attacker needs to supply ANSI text that is processed by the vulnerable converter and then viewed in a page displaying the converted output. No authentication is required, but a user must view the crafted output for script execution to occur.

3

What input should be treated as dangerous until remediation is available?

Treat untrusted ANSI input containing OSC 8 hyperlink sequences as dangerous, particularly URLs using javascript: schemes or values designed to break out of an href attribute. Avoid rendering such input as HTML in a browser until the vulnerable handling is addressed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203