CVE-2026-118251: Highcharts: `javascript:` URL in credits.href runs script on click
A credits.href value beginning with javascript: is assigned to the window location when the credits label is clicked, without being checked against an allowed-scheme list. An attacker who controls the chart configuration can therefore run script in the origin of the page hosting the chart. Exploitation requires that untrusted data reach the chart configuration and that a user click the credits label. Charts built with Highcharts Stock, Maps and Gantt are included, since those ship from the same package as Core.
References
- github.com/advisories/GHSA-5793-x2q3-c3q7
- github.com/highcharts/highcharts/commit/9534773d0f41400aac0945bf8aaebc38dfc72aff
- github.com/highcharts/highcharts/pull/25315
- github.com/highcharts/highcharts/releases/tag/v13.1.0
- github.com/highcharts/highcharts/security/advisories/GHSA-5793-x2q3-c3q7
- nvd.nist.gov/vuln/detail/CVE-2026-118251
Code Behaviors & Features
Detect and mitigate CVE-2026-118251 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →