CVE-2025-14284

6.1 MEDIUM

📋 TL;DR

This vulnerability allows attackers to execute arbitrary JavaScript code in web applications using vulnerable versions of the @tiptap/extension-link package. Attackers can inject malicious javascript: URLs into link attributes, which execute when users interact with the links. This affects any application using @tiptap/extension-link before version 2.10.4.

💻 Affected Systems

Products:
  • @tiptap/extension-link
Versions: All versions before 2.10.4
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects applications using the vulnerable link extension functionality.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete account takeover, session hijacking, data theft, or malware distribution through the compromised application.

🟠

Likely Case

Session hijacking, credential theft, or defacement of user-facing content.

🟢

If Mitigated

Limited impact with proper Content Security Policy (CSP) headers and input validation in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires user interaction with malicious links but is straightforward to implement.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.10.4

Vendor Advisory: https://github.com/ueberdosis/tiptap/releases/tag/v2.10.4

Restart Required: No

Instructions:

1. Update @tiptap/extension-link to version 2.10.4 or later using npm/yarn/pnpm. 2. Run npm update @tiptap/extension-link or equivalent. 3. Rebuild and redeploy your application.

🔧 Temporary Workarounds

Input Sanitization

all

Implement server-side validation to reject javascript: URLs and other dangerous protocols in link inputs.

Content Security Policy

all

Implement strict CSP headers to block inline JavaScript execution.

🧯 If You Can't Patch

  • Disable user-generated links in the editor or implement strict URL validation.
  • Implement network segmentation and monitoring for suspicious outbound connections.

🔍 How to Verify

Check if Vulnerable:

Check package.json for @tiptap/extension-link version. If version is below 2.10.4, you are vulnerable.

Check Version:

npm list @tiptap/extension-link

Verify Fix Applied:

Verify package.json shows @tiptap/extension-link version 2.10.4 or higher.

📡 Detection & Monitoring

Log Indicators:

  • Unusual JavaScript execution events in browser console logs
  • Suspicious URL patterns containing javascript: protocol

Network Indicators:

  • Unexpected outbound connections from the application to external domains

SIEM Query:

source="web_server" AND (javascript: OR data: OR vbscript:) IN url

🔗 References

📤 Share & Export