cve.bz

CVE-2026-92973 pycontribs ansi2html: Cross-site Scripting

5.3 mediumEPSS 0.4%

Medium (5.3) in pycontribs ansi2html. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.3 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-92973 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-92973?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-92973?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-92973 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
pycontribs ansi2htmlfrom 1.7.0a0 before 1.9.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14python-ansi2html1.9.5-1DEBIAN-CVE-2026-92973
Ubuntu26.04:LTS, 26.10python-ansi2htmlno fix listedUBUNTU-CVE-2026-92973
openSUSETumbleweedpython-ansi2html1.9.5-1.1openSUSE-SU-2026:11815-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A MODERATE severity cross-site scripting (XSS) flaw was found in ansi2html, which is shipped in the Red Hat Ansible Automation Platform 2.7 automation controller container image (ansible-automation-platform-27/controller-rhel9, containing ansi2html 1.9.2). The OSC 8 hyperlink handling in ansi2html fails to validate or escape URL targets: an attacker who controls ANSI text that is converted to HTML and displayed in a victim's browser can inject a javascript: URL scheme or terminate the generated href attribute, executing arbitrary scripts in the context of the displayed web page. Exploitation requires user interaction, as the victim must view the converted output, and can lead to information disclosure or other client-side attacks limited to the victim's browser session. Red Hat rates this flaw MODERATE with a CVSS 3.1 base score of 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), matching the upstream CVSS v3.1 score; the upstream CVSS v4.0 score of 5.3 is also MODERATE, so there is no meaningful severity difference. For Ansible Automation Platform 2.7 the fix is deferred: because the impact is MODERATE with a CVSS score below 7.0, no tracker is being filed for this flaw at this time. The residual risk of deferring is that ANSI-controlled content rendered as HTML could enable client-side script execution in the browser of a user viewing the converted output. The upstream project has published a code fix that validates OSC 8 hyperlink URL schemes against an allowlist and escapes quotes in the generated href attributes.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. The upstream project has published a code fix that validates OSC 8 hyperlink URL schemes against an allowlist and escapes quotes in the generated href attributes, but no released ansi2html version containing this fix has been identified, so no specific upgrade target can be recommended at this time.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/controller-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-92973.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON