Intel

AIKIDO-2026-65180

@tiptap/core is vulnerable to Prototype Pollution

Prototype PollutionGHSA-cp6q-959q-f8rh Published 2 days ago

72

High Risk

This Affects:

JS@tiptap/core
2.0.0 - 3.30.3
Fixed in 3.30.4
Are you affected? Scan for Free

TL;DR

The mergeAttributes() helper in @tiptap/core assigns attribute keys from an object without filtering the __proto__ key. Processing document or API data that contains an own __proto__ property invokes the legacy prototype setter and injects values into an object's prototype. When the resulting object is rendered as a ProseMirror DOM output attribute set, inherited properties are applied via setAttribute, executing JavaScript in the application origin. The fix skips the __proto__ key during attribute merging.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application merges untrusted document or API data into editor node attributes.

Background info

@tiptap/core is vulnerable to Prototype Pollution in versions 2.0.0 - 3.30.3.

How to fix this

Upgrade the @tiptap/core library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform