{"id":"CVE-2026-116796","kind":"vulnerability","aliases":["CVE-2026-116796","GHSA-mw4f-gj5x-6xr4"],"related":[],"title":"Highcharts Core: `javascript:` URL in an `xlink:href` attribute survives text filtering and reaches exported charts","description":"### Impact\nThe filter applied to markup in text options checks `href`, `src` and a few similar attributes against an allowed-scheme list, but accepts `xlink:href` without that check, so an SVG anchor whose `xlink:href` is a `javascript:` URL passes the filter, whether or not the option is rendered with `useHTML`. In the live page the attribute is written without the XLink namespace, so browsers do not treat the anchor as a link there.\n\nThe attribute is preserved verbatim in the chart's serialised output: the SVG produced by the exporting module, including the default SVG download, declares the XLink namespace and contains the anchor, and so does the markup of the chart container. Any document that parses that output again, such as the downloaded SVG opened in a browser or a page that inlines exported or server-rendered chart markup, then holds a working link, and an attacker who controls the chart configuration can thereby run script in the origin of that document when a user activates the link.\n\nExploitation requires that untrusted data reach a text option such as the title, that the chart be exported or its markup be serialised and parsed again, and that a user activate the link.\n\n### Workarounds\nDrop-in fix for all affected versions (10.3.2 - 13.1.0).\n\nAdd the below IIFE to run after Highcharts is loaded, before creating a chart.\n\n```\n!function(t){var e=t&&t.AST;if(e&&\"function\"==typeof e.filterUserAttributes&&!e.xlinkHrefPatched){var r=e.filterUserAttributes,n=Object.prototype.hasOwnProperty;e.filterUserAttributes=function(t){return t&&n.call(t,\"xlink:href\")&&!o(t[\"xlink:href\"])&&delete t[\"xlink:href\"],r.call(this,t)},e.xlinkHrefPatched=!0}function o(t){var r=e.allowedReferences||[\"https://\",\"http://\",\"mailto:\",\"/\",\"../\",\"./\",\"#\"];return\"string\"==typeof t&&r.some(function(e){return 0===t.indexOf(e)})}}(Highcharts);\n```\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.1`. If you load Highcharts from the CDN, use the versioned URLs on code.highcharts.com, for example `https://code.highcharts.com/13.1.1/highcharts.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/getting-started/installation).","summary":"Highcharts JS accepts an SVG xlink:href attribute without the allowed-scheme check it applies to href and src. An attacker who controls a chart text option can keep a javascript: URL in exported SVG, and script runs when a user clicks that link in the re-parsed document.","severity":"high","cvss":7.2,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"highcharts","fixed":["11.4.9"],"affected":">= 10.3.2, < 11.4.9","ecosystem":"npm"},{"name":"highcharts","fixed":["12.6.2"],"affected":">= 12.0.0, < 12.6.2","ecosystem":"npm"},{"name":"highcharts","fixed":["13.1.1"],"affected":">= 13.0.0, <= 13.1.0","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["charting","cwe-79","frontend","highcharts","javascript","package"],"not_affected_if":["already-patched","no-svg-export","trusted-chart-text"],"how_to_check":"- Check the installed version with `npm ls highcharts` and look at the Highcharts version in your lockfile.\n- Look for chart text options (titles, labels, tooltips) filled from user input that are exported or server-rendered as SVG.","fix":"- Upgrade highcharts to `11.4.9`, `12.6.2` or `13.1.1`, whichever matches your major version.","status":"open","published_at":"2026-10-28T18:17:14+00:00","first_seen_at":"2026-10-28T18:34:33+00:00","triaged_at":"2026-10-28T18:34:55+00:00","updated_at":"2026-10-28T19:56:29+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-28T18:34:55Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade highcharts to `11.4.9`, `12.6.2` or `13.1.1`, whichever matches your major version.","reach":"internet","title":"Highcharts: SVG xlink:href skips scheme check, enabling javascript links","impact":"high","summary":"Highcharts JS accepts an SVG xlink:href attribute without the allowed-scheme check it applies to href and src. An attacker who controls a chart text option can keep a javascript: URL in exported SVG, and script runs when a user clicks that link in the re-parsed document.","category":"package","nicknames":[],"who_cares":["javascript","highcharts","charting","frontend"],"confidence":0.7,"needs_auth":"unknown","worst_case":"Script runs in the document origin when a user clicks a link","analyst_note":"","how_to_check":"- Check the installed version with `npm ls highcharts` and look at the Highcharts version in your lockfile.\n- Look for chart text options (titles, labels, tooltips) filled from user input that are exported or server-rendered as SVG.","needs_analyst":false,"not_affected_if":["trusted-chart-text","no-svg-export","already-patched"],"who_is_affected":"Teams that ship Highcharts 10.3.2 through versions before 11.4.9, 12.6.2 or 13.1.1 and let end users set chart text, then export or server-render that chart as SVG that is later reopened and clicked. Apps that only render charts in the browser from trusted data, or do not export SVG, are less exposed.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000619,"input_tokens":3392,"output_tokens":560,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-116796':19A,27A '-2026':18A,26A '-79':33B '/13.1.1/highcharts.js':427C '/docs/getting-started/installation).':440C '0':357C,373C '10.3.2':304C '13.1.0':305C '13.1.1':409C '6xr4':24A 'accept':40B,113C 'activ':259C,292C 'add':306C 'affect':302C,396C 'allow':49B,109C 'allowed-schem':48B,108C 'anchor':122C,160C,195C 'appli':53B,92C 'attack':59B,240C 'attribut':9A,45B,105C,147C,166C 'avail':385C 'browser':155C,220C 'cdn':416C 'channel':391C 'chart':16A,31B,63B,172C,203C,231C,244C,277C,319C 'check':51B,98C,118C 'click':80B 'code.highcharts.com':422C,426C 'code.highcharts.com/13.1.1/highcharts.js':425C 'configur':245C 'contain':193C,204C 'control':61B,242C 'core':2A 'creat':317C 'cve':17A,25A 'cwe':32B 'data':266C 'declar':188C 'default':185C 'delet':349C 'distribut':390C 'document':88B,206C,255C 'download':187C,215C 'drop':297C 'drop-in':296C 'e':323C,326C,371C,375C 'e.allowedreferences':363C 'e.filteruserattributes':329C,333C,336C 'e.xlinkhrefpatched':330C,356C 'exampl':405C,424C 'exploit':262C 'export':15A,72B,181C,226C,279C 'filter':12A,91C,132C 'fix':299C 'frontend':34B 'function':320C,327C,337C,358C,370C 'ghsa':21A 'ghsa-mw4f-gj5x-6xr4':20A 'gj5x':23A 'guid':437C 'highchart':1A,35B,38B,313C,376C,408C,413C 'highcharts':28A,29A,30A 'hold':234C 'href':8A,44B,55B,99C,115C,125C,344C,348C,352C 'iif':309C 'impact':89C 'includ':183C 'inlin':225C 'instal':407C,432C,436C 'javascript':3A,36B,69B,128C 'js':39B 'keep':67B 'link':82B,163C,237C,261C,294C 'list':111C,402C 'live':144C 'load':315C,412C 'mailto':364C 'markup':94C,200C,232C,282C 'method':433C 'modul':182C 'mw4f':22A 'n':334C 'n.call':341C 'namespac':153C,191C 'npm':393C,406C 'o':345C,359C 'object.prototype.hasownproperty':335C 'obtain':377C 'open':217C 'option':65B,97C,137C,270C 'origin':252C 'output':175C,210C 'packag':37B,397C 'page':145C,223C 'pars':87B,208C,286C 'pass':130C 'patch':379C,382C,400C 'preserv':168C 'produc':178C 'r':332C,362C 'r.call':353C 'r.some':369C 're':86B 're-pars':85B 'reach':14A,267C 'releas':383C 'render':139C,230C 'requir':263C 'return':339C,365C,372C 'run':76B,248C,311C 'scheme':50B,110C 'script':75B,249C 'see':434C 'serialis':174C,284C 'server':229C 'server-rend':228C 'similar':104C 'src':57B,100C 'string':366C 'surviv':10A 'svg':42B,73B,121C,177C,186C,216C 't.indexof':374C 'text':11A,64B,96C,269C 'therebi':247C 'titl':274C 'treat':158C 'typeof':328C,367C 'untrust':265C 'upgrad':394C 'url':4A,70B,129C,420C 'use':417C 'usehtml':141C 'user':79B,258C,291C 'usual':389C 'var':322C,331C,361C 'verbatim':169C 'version':303C,380C,401C,419C 'whether':133C 'whose':123C 'without':46B,116C,150C 'work':236C 'workaround':295C 'written':149C 'www.highcharts.com':439C 'www.highcharts.com/docs/getting-started/installation).':438C 'xlink':7A,43B,114C,124C,152C,190C,343C,347C,351C","nicknames":[],"mitigations":[],"who_affected":"Teams that ship Highcharts 10.3.2 through versions before 11.4.9, 12.6.2 or 13.1.1 and let end users set chart text, then export or server-render that chart as SVG that is later reopened and clicked. Apps that only render charts in the browser from trusted data, or do not export SVG, are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-28T18:17:14+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-116796","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116796","severity":null,"published_at":"2026-10-28T18:17:14+00:00","modified_at":"2026-10-28T18:17:14+00:00","first_seen_at":"2026-10-28T18:34:33+00:00","fetched_at":"2026-10-28T18:34:33+00:00","note":null},{"source":"ghsa","external_id":"GHSA-mw4f-gj5x-6xr4","url":"https://github.com/advisories/GHSA-mw4f-gj5x-6xr4","severity":"high","published_at":"2026-10-28T19:55:10+00:00","modified_at":"2026-10-28T19:55:11+00:00","first_seen_at":"2026-10-28T19:56:29+00:00","fetched_at":"2026-10-28T19:56:29+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}