---
id: CVE-2026-118251
title: 'Highcharts: javascript: URL in credits.href runs script on click'
summary: >-
  Highcharts JS is a JavaScript charting library based on SVG. Prior to 11.4.9,
  12.6.1, and 13.1.0, Highcharts assigns credits.href to the window location
  when the credits label is clicked without checking the URL against the
  allowed-schem…
severity: high
cvss: 8.4
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: highcharts
product: highcharts
affected:
  - highcharts < 11.4.9
  - 'highcharts >= 12.0.0, < 12.6.1'
  - 'highcharts >= 13.0.0, < 13.1.1'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-02T20:28:00.504499Z'
published: '2026-10-28'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T20:28:14.493Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-118251'
references:
  - url: >-
      https://github.com/highcharts/highcharts/security/advisories/GHSA-5793-x2q3-c3q7
    label: >-
      https://github.com/highcharts/highcharts/security/advisories/GHSA-5793-x2q3-c3q7
  - url: 'https://github.com/highcharts/highcharts/pull/25315'
    label: 'https://github.com/highcharts/highcharts/pull/25315'
  - url: >-
      https://github.com/highcharts/highcharts/commit/9534773d0f41400aac0945bf8aaebc38dfc72aff
    label: >-
      https://github.com/highcharts/highcharts/commit/9534773d0f41400aac0945bf8aaebc38dfc72aff
  - url: 'https://github.com/highcharts/highcharts/releases/tag/v13.1.0'
    label: 'https://github.com/highcharts/highcharts/releases/tag/v13.1.0'
  - url: 'https://github.com/advisories/GHSA-5793-x2q3-c3q7'
tags:
  - cve.org
  - ghsa
  - npm
epss: 0.00433
epssPercentile: 0.37724
aliases:
  - GHSA-5793-x2q3-c3q7
ecosystem: npm
patched:
  - highcharts 11.4.9
  - highcharts 12.6.1
  - highcharts 13.1.0
ingestedAt: '2026-10-28T19:16:53.370Z'
---

## Overview

Highcharts JS is a JavaScript charting library based on SVG. Prior to 11.4.9, 12.6.1, and 13.1.0, Highcharts assigns credits.href to the window location when the credits label is clicked without checking the URL against the allowed-scheme list. An attacker who controls chart configuration can provide a javascript URL and run script in the origin of the hosting page when a user clicks the credits label. Highcharts Stock, Maps, and Gantt are included because they ship from the same package. This issue is fixed in 11.4.9, 12.6.1 and 13.1.0.

## Affected

- `highcharts < 11.4.9`
- `highcharts >= 12.0.0, < 12.6.1`
- `highcharts >= 13.0.0, < 13.1.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-118251)

Affected packages:

- `highcharts < 11.4.9`
- `highcharts >= 12.0.0, < 12.6.1`
- `highcharts >= 13.0.0, <= 13.0.2`

Patched in:

- `highcharts 11.4.9`
- `highcharts 12.6.1`
- `highcharts 13.1.0`

Source: https://github.com/advisories/GHSA-5793-x2q3-c3q7
