# CVE-2026-118244: Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print


- **Severity:** High 7.2 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 28 Oct 2026
- **Updated:** 28 Oct 2026
- **Also known as:** GHSA-65hg-cf3f-5m39

## What is CVE-2026-118244?

CVE-2026-118244 is a high-severity vulnerability in highcharts, published on 28 Oct 2026. 

### Official 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.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2026-118244?

4 open source packages ship an affected version, including highcharts.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `highcharts` | npm | From 12.0.0 | 12.6.1 |
| `highcharts` | npm | From 12.0.0 | 12.6.1 |
| `highcharts` | npm | From 13.0.0 | 13.1.0 |
| `highcharts` | npm | From 13.0.0 | 13.1.0 |

## How do I fix CVE-2026-118244?

Upgrade highcharts to a fixed version for your release line: 12.6.1 or 13.1.0.

## Is CVE-2026-118244 being exploited?

There is no known exploitation of CVE-2026-118244 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-118244 and fix it if it is affected.

What it is: CVE-2026-118244 is a high-severity vulnerability in highcharts, published on 28 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-118244 in the wild and no public exploit code.

Affected packages and fixed versions:
- highcharts (npm): affected from 12.0.0; fixed in 12.6.1
- highcharts (npm): affected from 12.0.0; fixed in 12.6.1
- highcharts (npm): affected from 13.0.0; fixed in 13.1.0
- highcharts (npm): affected from 13.0.0; fixed in 13.1.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-118244/ (Markdown: https://insights.sbomify.com/CVE-2026-118244/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-118244
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-118244
- OSV: https://osv.dev/vulnerability/CVE-2026-118244

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-118244/
Summaries are generated and may contain mistakes; the official description above is the record.
