CVE-2026-92973: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pycontribs ansi2html
ansi2html versions 1.7.0a0 through 1.9.3 have a cross-site scripting (XSS) vulnerability in the handling of OSC 8 hyperlinks. The vulnerability arises because URL targets are not properly validated or escaped, allowing attackers who control ANSI text input to inject malicious javascript: schemes or manipulate href attributes. This can lead to arbitrary script execution in the context of web pages displaying the converted ANSI output.
AI Analysis
Technical Summary
The ansi2html library versions from 1.7.0a0 up to but not including 1.9.4 contain a cross-site scripting vulnerability related to improper neutralization of input during web page generation. Specifically, the OSC 8 hyperlink handling feature does not validate or escape URL targets, enabling attackers controlling ANSI text input to inject javascript: schemes or prematurely terminate href attributes. This flaw allows execution of arbitrary scripts within the security context of pages that render the converted output, potentially leading to client-side code execution.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the affected web page, which may lead to session hijacking, defacement, or other client-side attacks. The vulnerability requires the attacker to control the ANSI text input that is converted and displayed, and user interaction (UI) is needed to trigger the malicious script. The CVSS 4.0 base score is 5.3, indicating medium severity with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted ANSI text input with vulnerable versions of ansi2html or implement input validation and sanitization on ANSI text sources to prevent injection of malicious URL schemes.
CVE-2026-92973: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pycontribs ansi2html
Description
ansi2html versions 1.7.0a0 through 1.9.3 have a cross-site scripting (XSS) vulnerability in the handling of OSC 8 hyperlinks. The vulnerability arises because URL targets are not properly validated or escaped, allowing attackers who control ANSI text input to inject malicious javascript: schemes or manipulate href attributes. This can lead to arbitrary script execution in the context of web pages displaying the converted ANSI output.
CVSS v4.0
Score 5.3medium
Affected software
pycontribs
ansi2html
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ansi2html library versions from 1.7.0a0 up to but not including 1.9.4 contain a cross-site scripting vulnerability related to improper neutralization of input during web page generation. Specifically, the OSC 8 hyperlink handling feature does not validate or escape URL targets, enabling attackers controlling ANSI text input to inject javascript: schemes or prematurely terminate href attributes. This flaw allows execution of arbitrary scripts within the security context of pages that render the converted output, potentially leading to client-side code execution.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the affected web page, which may lead to session hijacking, defacement, or other client-side attacks. The vulnerability requires the attacker to control the ANSI text input that is converted and displayed, and user interaction (UI) is needed to trigger the malicious script. The CVSS 4.0 base score is 5.3, indicating medium severity with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted ANSI text input with vulnerable versions of ansi2html or implement input validation and sanitization on ANSI text sources to prevent injection of malicious URL schemes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-17T13:24:03.383Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac0b8155bf5e2cf5942ef0
Added to database: 09/17/2026, 15:47:13 UTC
Last enriched: 09/17/2026, 16:01:53 UTC
Last updated: 09/17/2026, 17:13:52 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.