Every CVESearch/Get API key

CVE-2026-133170

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 XSS via mergeAttributes() Prototype Manipulation

Explain with AI
ChatGPTClaudeGoogle AI
Severity
2.3Low
Network attack, no privileges, needs user interactionCVSS 4.0, CVE ListGitHub Advisories gives 6.4
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.30% in 30 days
Percentile24th
EPSS, scored
Listed fix
3.30.4 for @tiptap/core
From GitHub Advisories and OSV1 more listed version, 3 other affected packages

Overview

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

CVSS 4.0 vector

Exploitability

Attack vector
Network
Complexity
High
Attack requirements
Present
Privileges needed
None
User interaction
Passive

Impact on the vulnerable system

Confidentiality
Low
Integrity
Low
Availability
None

Impact on subsequent systems

Confidentiality
Low
Integrity
Low
Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Exploit chance over time

Unchanged since Nov 20, 2026
EPSS score, scored every day from Nov 20, 2026 to Dec 4, 2026: lowest 0.30% on Nov 20, 2026, highest 0.32% on Nov 25, 2026, 0.30% on the last day.

Affected

Packages 4

Affected packages
PackageAffectedFixed
@tiptap/core
npm
3.0.0-next.0 up to 3.30.4
3.30.4
2.0.0-alpha.0 up to 2.27.3
2.27.3
metabase
Docker Hardened Images:Alpine:3.23
0.63.16.9-r0 and later, plus listed versions
0.63.17.3-r00.63.18-r00.63.18.1-r00.63.18.2-r00.63.18.4-r0
Show 36 more versionsShow less
0.63.18.5-r00.63.19-r00.63.19.1-r00.63.19.2-r00.63.19.2-r10.64.2.8-r00.64.2.9-r00.64.3.2-r00.64.3.4-r00.64.3.4-r10.64.3.5-r00.64.3.5-r10.65.2.2-r00.65.3.6-r00.65.3.7-r00.65.4-r00.65.4.1-r00.65.4.2-r00.65.4.3-r00.65.4.4-r00.65.4.5-r00.65.5-r00.65.5.1-r00.65.6.1-r00.65.6.1-r10.65.6.2-r00.65.6.3-r00.65.7-r00.65.7.1-r00.65.7.2-r00.65.7.3-r00.65.7.4-r00.65.8-r00.65.8.1-r00.65.8.2-r00.65.8.2-r1
None listed
metabase
Docker Hardened Images:Alpine:3.24
0.63.16.9-r0 and later, plus listed versions
0.63.17.3-r00.63.18-r00.63.18.1-r00.63.18.2-r00.63.18.4-r0
Show 36 more versionsShow less
0.63.18.5-r00.63.19-r00.63.19.1-r00.63.19.2-r00.63.19.2-r10.64.2.8-r00.64.2.9-r00.64.3.2-r00.64.3.4-r00.64.3.4-r10.64.3.5-r00.64.3.5-r10.65.2.2-r00.65.3.6-r00.65.3.7-r00.65.4-r00.65.4.1-r00.65.4.2-r00.65.4.3-r00.65.4.4-r00.65.4.5-r00.65.5-r00.65.5.1-r00.65.6.1-r00.65.6.1-r10.65.6.2-r00.65.6.3-r00.65.7-r00.65.7.1-r00.65.7.2-r00.65.7.3-r00.65.7.4-r00.65.8-r00.65.8.1-r00.65.8.2-r00.65.8.2-r1
None listed
metabase
Docker Hardened Images:Debian:13
0.63.16.9-0 and later, plus listed versions
0.63.17.3-00.63.18-00.63.18.1-00.63.18.2-00.63.18.4-0
Show 36 more versionsShow less
0.63.18.5-00.63.19-00.63.19.1-00.63.19.2-00.63.19.2-10.64.2.8-00.64.2.9-00.64.3.2-00.64.3.4-00.64.3.4-10.64.3.5-00.64.3.5-10.65.2.2-00.65.3.6-00.65.3.7-00.65.4-00.65.4.1-00.65.4.2-00.65.4.3-00.65.4.4-00.65.4.5-00.65.5-00.65.5.1-00.65.6.1-00.65.6.1-10.65.6.2-00.65.6.3-00.65.7-00.65.7.1-00.65.7.2-00.65.7.3-00.65.7.4-00.65.8-00.65.8.1-00.65.8.2-00.65.8.2-1
None listed

Products 1

Sources

CVE List Score usedCVSS 4.02.3

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 XSS via mergeAttributes() Prototype Manipulation

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

Record
CVE-2026-133170
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
CVSS 3.1
4.7 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-19
EUVDEUVD-2026-130209CVSS 4.02.3

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

Record
EUVD-2026-130209
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Updated
2026-11-19
GitHub AdvisoriesGHSA-cp6q-959q-f8rhCVSS 4.06.4

Tiptap: mergeAttributes() turns an own __proto__ key into inherited executable DOM attributes

Summary

@tiptap/core's public mergeAttributes() helper uses ordinary bracket assignment on keys returned by Object.entries(). An own __proto__ key from JSON therefore invokes the legacy prototype setter on the fresh merged object. The function returns an object whose prototype is attacker-controlled, while Object.keys() and ordinary own-property checks show no attacker attributes.

When that result is used as a ProseMirror DOMOutputSpec attribute object, prosemirror-model's DOMSerializer.renderSpec() enumerates it with for...in and applies inherited values with setAttribute(). In a browser proof, inherited src and onerror values were copied to an <img> and the error handler executed once. This is per-object prototype manipulation; the proof does not modify global Object.prototype.

Root cause

The affected loop is conceptually:

const mergedAttributes = { ...items }
for (const [key, value] of Object.entries(item)) {
  const exists = mergedAttributes[key]
  // ...
  mergedAttributes[key] = value
}

Object.entries(JSON.parse('{"__proto__": {...}}')) includes __proto__. Reading mergedAttributes['__proto__'] resolves the inherited Object.prototype; assigning to the same key invokes Object.prototype.__proto__'s setter and replaces mergedAttributes' prototype.

Browser reproduction

The following shape was tested with exact @tiptap/core 3.29.2 and prosemirror-model 1.25.11:

const input = JSON.parse(`{
  "__proto__": {
    "data-inherited-canary": "present",
    "src": "x-invalid://canary",
    "onerror": "globalThis.__tiptapXss += 1"
  }
}`)

const attrs = mergeAttributes(input)
// Object.keys(attrs) === []
// Object.getPrototypeOf(attrs) === input.__proto__

const schema = new Schema({
  nodes: {
    doc: { content: 'image' },
    image: { toDOM: () => ['img', attrs] },
    text: {},
  },
})
const doc = schema.node('doc', null, [schema.node('image')])
const fragment = DOMSerializer.fromSchema(schema).serializeFragment(doc.content)
document.body.append(fragment)

Chromium produced an image with data-inherited-canary, src, and onerror; the handler executed exactly once. Object.prototype remained clean.

Impact and preconditions

Applications that merge untrusted imported document, plugin, CMS, API, tenant, or AI-derived attribute objects can receive a prototype-manipulated result. Consumers that enumerate inherited keys, including ProseMirror's DOM serializer, can turn the hidden properties into DOM attributes and execute JavaScript in the application's origin. Own-key validation, object spread, JSON serialization, and logging can miss the inherited values. Other component consumers can read inherited authorization or configuration fields.

Tiptap's standard fixed ProseMirror schemas discard unknown document attributes, so arbitrary Tiptap JSON is not automatically exploitable in every application. A vulnerable application needs an untrusted object boundary into mergeAttributes() or a dynamic/custom extension or schema that preserves the relevant attribute object.

Affected versions

The unsafe assignment was introduced in commit ecadf7ea0a7f8f39a8496a60edf0ac8f379e6eb3 and is present in the first package tag @tiptap/core@2.0.0-alpha.0, v2.0.0, v2.27.1, v3.0.0, and current v3.29.2 source. No fixed release was found.

Recommended remediation

Reject __proto__ before reading or assigning the key, or define copied keys as own data properties without invoking legacy setters. A minimal hardening is to skip key === '__proto__'. Add regression tests using an own JSON-origin __proto__ key and assert that the result keeps Object.prototype as its prototype, exposes no inherited attacker keys, and cannot create an event-handler attribute through DOMSerializer.

This was found during authorized dependency review and is being reported privately. No public zero-day issue has been opened.

Record
GHSA-cp6q-959q-f8rh
CVSS 4.0
6.4 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-79, CWE-1321
Updated
2026-12-01
GitHub AdvisoriesGHSA-cpr8-g2pc-v2f3CVSS 4.02.3

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability...

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

Record
GHSA-cpr8-g2pc-v2f3
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/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 3.1
4.7 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-19
NVDCVSS 4.02.3

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

Record
CVE-2026-133170
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/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 3.1
4.7 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-1321
Updated
2026-12-04
OSVCVSS 4.02.3

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 XSS via mergeAttributes() Prototype Manipulation

Tiptap @tiptap/core 2.0.0-alpha.0 before 3.30.4 contains a cross-site scripting vulnerability that allows attackers to inject DOM attributes via a proto key passed to mergeAttributes(). Attackers can supply untrusted JSON attribute data whose proto replaces the merged object's prototype, causing DOMSerializer.renderSpec to render injected event handlers that execute JavaScript.

Record
CVE-2026-133170
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Weakness
CWE-1321
Updated
2026-11-20
OSVDHI-gp2k-5g4k-qhli-whynCVSS 4.06.4

## Summary

Summary

@tiptap/core's public mergeAttributes() helper uses ordinary bracket assignment on keys returned by Object.entries(). An own __proto__ key from JSON therefore invokes the legacy prototype setter on the fresh merged object. The function returns an object whose prototype is attacker-controlled, while Object.keys() and ordinary own-property checks show no attacker attributes.

When that result is used as a ProseMirror DOMOutputSpec attribute object, prosemirror-model's DOMSerializer.renderSpec() enumerates it with for...in and applies inherited values with setAttribute(). In a browser proof, inherited src and onerror values were copied to an <img> and the error handler executed once. This is per-object prototype manipulation; the proof does not modify global Object.prototype.

Root cause

The affected loop is conceptually:

const mergedAttributes = { ...items }
for (const [key, value] of Object.entries(item)) {
  const exists = mergedAttributes[key]
  // ...
  mergedAttributes[key] = value
}

Object.entries(JSON.parse('{"__proto__": {...}}')) includes __proto__. Reading mergedAttributes['__proto__'] resolves the inherited Object.prototype; assigning to the same key invokes Object.prototype.__proto__'s setter and replaces mergedAttributes' prototype.

Browser reproduction

The following shape was tested with exact @tiptap/core 3.29.2 and prosemirror-model 1.25.11:

const input = JSON.parse(`{
  "__proto__": {
    "data-inherited-canary": "present",
    "src": "x-invalid://canary",
    "onerror": "globalThis.__tiptapXss += 1"
  }
}`)

const attrs = mergeAttributes(input)
// Object.keys(attrs) === []
// Object.getPrototypeOf(attrs) === input.__proto__

const schema = new Schema({
  nodes: {
    doc: { content: 'image' },
    image: { toDOM: () => ['img', attrs] },
    text: {},
  },
})
const doc = schema.node('doc', null, [schema.node('image')])
const fragment = DOMSerializer.fromSchema(schema).serializeFragment(doc.content)
document.body.append(fragment)

Chromium produced an image with data-inherited-canary, src, and onerror; the handler executed exactly once. Object.prototype remained clean.

Impact and preconditions

Applications that merge untrusted imported document, plugin, CMS, API, tenant, or AI-derived attribute objects can receive a prototype-manipulated result. Consumers that enumerate inherited keys, including ProseMirror's DOM serializer, can turn the hidden properties into DOM attributes and execute JavaScript in the application's origin. Own-key validation, object spread, JSON serialization, and logging can miss the inherited values. Other component consumers can read inherited authorization or configuration fields.

Tiptap's standard fixed ProseMirror schemas discard unknown document attributes, so arbitrary Tiptap JSON is not automatically exploitable in every application. A vulnerable application needs an untrusted object boundary into mergeAttributes() or a dynamic/custom extension or schema that preserves the relevant attribute object.

Affected versions

The unsafe assignment was introduced in commit ecadf7ea0a7f8f39a8496a60edf0ac8f379e6eb3 and is present in the first package tag @tiptap/core@2.0.0-alpha.0, v2.0.0, v2.27.1, v3.0.0, and current v3.29.2 source. No fixed release was found.

Recommended remediation

Reject __proto__ before reading or assigning the key, or define copied keys as own data properties without invoking legacy setters. A minimal hardening is to skip key === '__proto__'. Add regression tests using an own JSON-origin __proto__ key and assert that the result keeps Object.prototype as its prototype, exposes no inherited attacker keys, and cannot create an event-handler attribute through DOMSerializer.

This was found during authorized dependency review and is being reported privately. No public zero-day issue has been opened.

Record
DHI-gp2k-5g4k-qhli-whyn
CVSS 4.0
6.4 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Updated
2026-12-04
OSVGHSA-cp6q-959q-f8rhCVSS 4.06.4

Tiptap: mergeAttributes() turns an own __proto__ key into inherited executable DOM attributes

Summary

@tiptap/core's public mergeAttributes() helper uses ordinary bracket assignment on keys returned by Object.entries(). An own __proto__ key from JSON therefore invokes the legacy prototype setter on the fresh merged object. The function returns an object whose prototype is attacker-controlled, while Object.keys() and ordinary own-property checks show no attacker attributes.

When that result is used as a ProseMirror DOMOutputSpec attribute object, prosemirror-model's DOMSerializer.renderSpec() enumerates it with for...in and applies inherited values with setAttribute(). In a browser proof, inherited src and onerror values were copied to an <img> and the error handler executed once. This is per-object prototype manipulation; the proof does not modify global Object.prototype.

Root cause

The affected loop is conceptually:

const mergedAttributes = { ...items }
for (const [key, value] of Object.entries(item)) {
  const exists = mergedAttributes[key]
  // ...
  mergedAttributes[key] = value
}

Object.entries(JSON.parse('{"__proto__": {...}}')) includes __proto__. Reading mergedAttributes['__proto__'] resolves the inherited Object.prototype; assigning to the same key invokes Object.prototype.__proto__'s setter and replaces mergedAttributes' prototype.

Browser reproduction

The following shape was tested with exact @tiptap/core 3.29.2 and prosemirror-model 1.25.11:

const input = JSON.parse(`{
  "__proto__": {
    "data-inherited-canary": "present",
    "src": "x-invalid://canary",
    "onerror": "globalThis.__tiptapXss += 1"
  }
}`)

const attrs = mergeAttributes(input)
// Object.keys(attrs) === []
// Object.getPrototypeOf(attrs) === input.__proto__

const schema = new Schema({
  nodes: {
    doc: { content: 'image' },
    image: { toDOM: () => ['img', attrs] },
    text: {},
  },
})
const doc = schema.node('doc', null, [schema.node('image')])
const fragment = DOMSerializer.fromSchema(schema).serializeFragment(doc.content)
document.body.append(fragment)

Chromium produced an image with data-inherited-canary, src, and onerror; the handler executed exactly once. Object.prototype remained clean.

Impact and preconditions

Applications that merge untrusted imported document, plugin, CMS, API, tenant, or AI-derived attribute objects can receive a prototype-manipulated result. Consumers that enumerate inherited keys, including ProseMirror's DOM serializer, can turn the hidden properties into DOM attributes and execute JavaScript in the application's origin. Own-key validation, object spread, JSON serialization, and logging can miss the inherited values. Other component consumers can read inherited authorization or configuration fields.

Tiptap's standard fixed ProseMirror schemas discard unknown document attributes, so arbitrary Tiptap JSON is not automatically exploitable in every application. A vulnerable application needs an untrusted object boundary into mergeAttributes() or a dynamic/custom extension or schema that preserves the relevant attribute object.

Affected versions

The unsafe assignment was introduced in commit ecadf7ea0a7f8f39a8496a60edf0ac8f379e6eb3 and is present in the first package tag @tiptap/core@2.0.0-alpha.0, v2.0.0, v2.27.1, v3.0.0, and current v3.29.2 source. No fixed release was found.

Recommended remediation

Reject __proto__ before reading or assigning the key, or define copied keys as own data properties without invoking legacy setters. A minimal hardening is to skip key === '__proto__'. Add regression tests using an own JSON-origin __proto__ key and assert that the result keeps Object.prototype as its prototype, exposes no inherited attacker keys, and cannot create an event-handler attribute through DOMSerializer.

This was found during authorized dependency review and is being reported privately. No public zero-day issue has been opened.

Record
GHSA-cp6q-959q-f8rh
CVSS 4.0
6.4 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-1321, CWE-79
Updated
2026-12-01

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packages, referencesOSV
Affected packages, referencesOSV
Affected packages, referencesGitHub Advisories
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packages, severityOSV
Affected packagesOSV
Affected packagesOSV
Show 6 more daysShow less
Changes recorded by Every CVE
DayChangedSources
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
ReferencesEUVD, NVD
ReferencesEUVD
Affected packages, other IDs, weaknesses, key facts, published date, referencesEUVD, OSV
First indexedCVE List, GitHub Advisories
Affected packages, other IDs, key facts, referencesOSV
First indexedGitHub Advisories, OSV

Upstream dates may differ.

References

Show 4 more referencesShow less
MoveEnter Open