Intel

AIKIDO-2026-801631

@tiptap/extension-link is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 3 days ago

53

Medium Risk

This Affects:

JS@tiptap/extension-link
2.0.0 - 3.26.1
Fixed in 3.27.0
Are you affected? Scan for Free

TL;DR

The Link extension's isAllowedUri validator builds its scheme-checking regex from a JavaScript template literal where \- collapses to -, so unknown hyphenated URI schemes such as unknown-protocol://test can be accepted as allowed links. An attacker who can supply editor link content may persist disallowed protocol links that bypass the built-in allowlist used during parsing, rendering, autolinking, paste handling, and link commands. Before the fix, those links could survive validation and be stored in editor output. The patch double-escapes the hyphen terminator and escapes protocol names when constructing the regex so unknown hyphenated schemes are rejected again.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@tiptap/extension-link is vulnerable to Improper Input Validation in versions 2.0.0 - 3.26.1.

How to fix this

Upgrade the @tiptap/extension-link library to the patch version.