CVE-2026-118244

Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print

Published Oct 28, 2026 CVSS 4.0 · 7.2 High EPSS < 1% KEV · Not listed
Description
Highcharts JS is a JavaScript charting library based on SVG. From 12.0.0 until 12.6.1 and 13.1.0, Highcharts falls back to assigning raw markup to innerHTML when DOMParser cannot return a document, before its allow-list is applied. In Chromium, the Trusted Types callback can throw while a beforeprint handler runs, so a page that redraws a chart during beforeprint can insert untrusted HTML text options into the hosting document. Event handlers in that markup then run in the page origin when printing begins. The issue affects HTML-rendered titles, labels, data labels, responsive text, and the Stock, Maps, and Gantt products shipped in the same package. This issue is fixed in 12.6.1 and 13.1.0.

Analysis

AI-generated

Technical impact

Highcharts JavaScript charting library contains a flaw where, when DOMParser cannot parse input the library falls back to assigning raw markup to a DOM element’s innerHTML before applying its allow‑list. During the browser beforeprint phase a Trusted Types callback can throw, causing a chart that is re‑drawn to inject untrusted HTML. The injected markup, which can contain event handlers, is then rendered by the browser. This allows an attacker who controls chart data or options to execute arbitrary JavaScript in the context of the hosting page, compromising confidentiality, integrity and potentially allowing further attacks such as credential theft or defacement. The weakness is a classic XSS flaw classified as CWE‑79.

Affected Systems

The vulnerability affects Highcharts, a popular JavaScript charting library, in the versions shipped between 12.0.0 and before 12.6.1 and any releases prior to 13.1.0. All product variants that use HTML‑rendered elements such as titles, labels, data labels, responsive text, and the Stock, Maps and Gantt packages are impacted. Users who rely on earlier releases—specifically any version older than 12.6.1 or 13.1.0—must be aware that these components could be exploited when a print preview or print command is triggered.

Risk and Exploitability

The CVSS v3 score of 7.2 indicates a high impact severity. The EPSS score is not available, so no quantitative likelihood from that metric can be provided. The vulnerability is not listed in the CISA KEV catalog, implying it is not currently known to be exploited in the wild. The attack vector requires that the victim’s browser processes the vulnerable Highcharts code and that a print operation is initiated. An attacker would need to supply malicious chart data in a page that the user views, making exploitation primarily a local or socially engineered scenario. However, because the flaw results in arbitrary code execution in the page’s origin, it is suitable for phishing or supply‑chain attacks and can lead to significant compromise if used by a malicious site.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Highcharts to version 12.6.1 or any newer 13.x release, or to the current stable release, to receive the fix that removes the unsafe innerHTML assignment.
  • If an upgrade cannot be performed immediately, disable the beforeprint event handling or prevent the chart from redrawing during the print phase to avoid triggering the vulnerable code path.
  • Consider removing or sanitizing any HTML‑rendered titles, labels, data labels or responsive text features from the chart configuration, as a temporary mitigation against the injection of event handlers.

Generated by OpenCVE AI on October 28, 2026 at 18:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-65hg-cf3f-5m39 Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Highcharts
Highcharts highcharts
Vendors & Products Highcharts
Highcharts highcharts
Type Values Removed Values Added
Description Highcharts JS is a JavaScript charting library based on SVG. From 12.0.0 until 12.6.1 and 13.1.0, Highcharts falls back to assigning raw markup to innerHTML when DOMParser cannot return a document, before its allow-list is applied. In Chromium, the Trusted Types callback can throw while a beforeprint handler runs, so a page that redraws a chart during beforeprint can insert untrusted HTML text options into the hosting document. Event handlers in that markup then run in the page origin when printing begins. The issue affects HTML-rendered titles, labels, data labels, responsive text, and the Stock, Maps, and Gantt products shipped in the same package. This issue is fixed in 12.6.1 and 13.1.0.
Title Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 7.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 6:19 PM
Reserved
Oct 27, 2026, 8:13 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 6:17 PM
Modified
Oct 30, 2026, 7:18 PM
Severity
Moderate
Public date
Oct 28, 2026, 5:36 PM