#25171·highcharts

DataCursor rejects prototype-named table IDs and states

Author: OskarEichlerCreated Aug 30, 2026Updated Sep 28, 2026
LabelsType: BugProduct: HighchartsStatus: Pending replyStatus: Stale

Expected behaviour

DataCursor accepts string table IDs and state names. Values such as toString and __proto__ should register, emit, persist, remit, and remove listeners like any other string.

Actual behaviour

The listener and state registries are ordinary objects and their lookup paths accept inherited members as existing records/arrays. addListener('toString', '__proto__', listener) consequently treats built-in prototype functions/objects as registries and throws when calling push. Prototype assignment is unsafe as well.

Live demo with steps to reproduce

javascript
const cursor = new Highcharts.DataCursor();
const table = new Highcharts.DataTable({ id: 'toString' });
cursor.addListener(table.id, '__proto__', () => {}); // throws

Product version

Highcharts source at 13.0.2 (48b5b3e99a0fa9aae9a357165a5a916f504afeca).

Affected browser(s)

All environments; this is registry-key handling.