CVE-2025-14284: @tiptap/extension-link Vulnerable to Cross-site Scripting (XSS)
Summary
CVE-2025-14284: @tiptap/extension-link vulnerable to Cross-site Scripting (XSS). Affects @tiptap/extension-link versions < 2.10.4. Fixed in 2.10.4. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @tiptap/extension-link package is a popular extension for the Tiptap rich-text editor, enabling users to create and manage hyperlinks within their content. It is widely used in web applications to enhance text editing capabilities. However, prior to version 2.10.4, the package had a significant vulnerability that allowed unsanitized user input when setting or toggling links, making it susceptible to Cross-site Scripting (XSS) attacks.
Vulnerability Detail
Versions of the @tiptap/extension-link package before 2.10.4 are vulnerable to Cross-site Scripting (XSS) due to the lack of input sanitization. An attacker can exploit this vulnerability by injecting a malicious 'javascript:' URL payload into link attributes. When a user interacts with the link, the injected JavaScript code executes in the context of the application, potentially compromising user data and application integrity.
How To Fix
Latest published version: 3.32.0 as of 22 Oct 2026
npm install @tiptap/extension-link@3.32.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.10.4
This is the first release that contains the fix.
npm install @tiptap/extension-link@2.10.4
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate updating is not feasible, consider implementing input validation and sanitization for any user-generated content that may be used in links. This can help mitigate the risk of XSS attacks until the package can be updated.
Conclusion
The @tiptap/extension-link package is vulnerable to Cross-site Scripting (XSS) in versions prior to 2.10.4. It is crucial for developers using this package to update to the latest version to mitigate the risk of XSS attacks. Implementing input validation can serve as a temporary measure until the update is applied.
See every vulnerability recorded for @tiptap/extension-link →
FAQ
Cross-site Scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially compromising user data and application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground, you can check if your application is affected by this vulnerability without requiring any installation.
If exploited, this vulnerability can allow attackers to execute arbitrary JavaScript code in the context of the application, leading to data theft, session hijacking, or other malicious activities.
Yes, you can implement input validation and sanitization for user-generated content that may be used in links to reduce the risk of XSS attacks until you can update the package.
The CVSS score of this vulnerability is 6.1, indicating a moderate level of risk associated with its exploitation.