{"schema":"threatline.record/2","record":{"id":"CVE-2026-118251","aliases":["GHSA-5793-x2q3-c3q7"],"summary":"Highcharts: `javascript:` URL in credits.href runs script on click","details":"### Impact\nA `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.\n\n### Workarounds\nDrop-in fix - for any versions affected (5.0.0-13.0.2).\nAdd the below IIFE to run after Highcharts is loaded, but before a chart is created.\n\n```js\n!function(t){if(t&&t.Chart&&!t.Chart.prototype.creditsHrefPatched){var r=t.Chart.prototype,e=r.addCredits;r.addCredits=function(n){var o=t.merge(!0,this.options.credits,n);return o&&o.href&&!c(o.href)&&delete o.href,e.call(this,o)},r.creditsHrefPatched=!0}function c(r){var e=t.AST&&t.AST.allowedReferences||[\"https://\",\"http://\",\"mailto:\",\"/\",\"../\",\"./\",\"#\"];return\"string\"==typeof r&&e.some(function(t){return 0===r.indexOf(t)})}}(Highcharts);\n```\n[Live demo & testing](https://jsfiddle.net/BlackLabel/6a09ws1f/)\n\n### Obtaining the patched version\nThe patched releases are available from all the usual distribution channels. With npm, upgrade the affected package to the patched version listed above, for example `npm install highcharts@ 13.1.0`. If you load Highcharts from the CDN, use the versioned URLs on code.highcharts.com, for example `https://code.highcharts.com/13.1.0/highcharts.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/getting-started/installation).","categories":["Libraries & packages"],"product":"highcharts","vendor":"highcharts","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"range":"< 11.4.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"range":">= 12.0.0, < 12.6.1"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"range":">= 13.0.0, <= 13.0.2"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-118251","source_modified_at":"2026-10-28T18:02:46.576Z","fetched_at":"2026-10-28T20:58:01.013507Z","product":"highcharts","vendor":"highcharts","versions":[{"version":"< 11.4.9","status":"affected"},{"version":">= 12.0.0, < 12.6.1","status":"affected"},{"version":">= 13.0.0, < 13.1.1","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"11.4.9"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"12.0.0"},{"fixed":"12.6.1"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"13.0.0"},{"fixed":"13.1.0"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"version":"11.4.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"version":"12.6.1"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T19:56:37Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"highcharts"},"version":"13.1.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"version":"11.4.9"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"version":"12.6.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","source_modified_at":"2026-10-28T20:15:06.091222330Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"highcharts","ecosystem":"npm","purl":"pkg:npm/highcharts"},"version":"13.1.0"}],"cvss":8.4,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-28T18:02:46.576Z","modified_at":"2026-10-28T20:15:06.091222330Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T19:56:37Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118251","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T18:02:46.576Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-5793-x2q3-c3q7","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T20:15:06.091222330Z"}],"sources":["GitHub Advisory Database","CVE List","OSV"],"references":[{"source":"CVE List","url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-5793-x2q3-c3q7","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/highcharts/highcharts/pull/25315","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/highcharts/highcharts/commit/9534773d0f41400aac0945bf8aaebc38dfc72aff","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/highcharts/highcharts/releases/tag/v13.1.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-5793-x2q3-c3q7","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-28T20:15:06.091222330Z","content_hash":"15c62d260c0115fb6e337a731cfe33d17a7bde80afe6b4bf1b992f20898f1fd2"}}
