CVE-2025-14284: @tiptap/extension-link Vulnerable to Cross-site Scripting (XSS)

@tiptap/extension-link Updated 10 Dec 2025

Summary

09/12/2025
Yes i
Low
6.1

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback