@tiptap/extension-link is vulnerable to Improper Input Validation
53
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
@tiptap/extension-link is vulnerable to Improper Input Validation in versions 2.0.0 - 3.26.1.
Upgrade the @tiptap/extension-link library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant