Skip to content

Conversation

l-lejman
Copy link

@l-lejman l-lejman commented Jun 25, 2025

Hi, I am a developer of CKEditor 5.

CKEditor5 uses a null-prototype object when the editor configuration is modified using the editor.config.define() function, in order to prevent prototype pollution vulnerabilities.

https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/config.ts#L198

MathType integration uses hasOwnProperty on the language object from the config, which causes an error when that property is defined using editor.config.define(), as the resulting object has a null prototype and does not include the hasOwnProperty method.

We need this change to prevent editor crashes when the language configuration is modified in this way.

Closes: #1106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CKEditor 5] Change ckeditor5 language config propety check to handle null prototype
1 participant