ADVISORIES

GitHub Advisory Database

GHSA-vhrc-hgrq-x75r

@tiptap/extension-link vulnerable to Cross-site Scripting (XSS)

Details

Versions of the package @tiptap/extension-link before 2.10.4 are vulnerable to Cross-site Scripting (XSS) due to unsanitized user input allowed in setting or toggling links. An attacker can execute arbitrary JavaScript code in the context of the application by injecting a javascript: URL payload into these attributes, which is then triggered either by user interaction.

Affected packages

EcosystemPackageAffected versions
npm@tiptap/extension-link
All versions before 2.10.4 (fixed in 2.10.4)

References