@lexical/extension is vulnerable to Prototype Pollution
48
CVE Score
Medium
Prototype Pollution
The @lexical/extension package merges theme configuration with deepThemeMergeInPlace, which recursively copies keys from a source object. A __proto__ key produced by JSON.parse is followed during the merge, so merging attacker-influenced theme JSON pollutes the global Object.prototype. Polluted prototype properties then appear on all objects in the application, enabling tampering or denial of service. The fix skips __proto__, constructor, and prototype keys and copies only own properties.
Upgrade the @lexical/extension library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application merges attacker-influenced JSON into the editor theme.
0.36.0 - 0.45.0
Fixed in 0.46.0@lexical/extension is vulnerable to Prototype Pollution in versions 0.36.0 - 0.45.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.