Intel

AIKIDO-2026-738065

@tiptap/core is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS)GHSA-j95f-988m-3j2f Published 6 days ago

53

Medium Risk

This Affects:

JS@tiptap/core
3.7.0 - 3.30.4
Fixed in 3.30.5
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the default Markdown attribute parsers used by createBlockMarkdownSpec, createAtomBlockMarkdownSpec, and createInlineMarkdownSpec. The block-attribute parser uses unanchored greedy expressions that rescan repeated quoted prefixes, and the inline shortcode parser rescans a greedy word-character pattern when no equals sign follows, both producing quadratic complexity. Supplying crafted Markdown input causes excessive backtracking that can block the browser thread, server event loop, or worker. The fix replaces the multi-pass regex parsers with deterministic single-pass tokenizers.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse untrusted Markdown input through the default Markdown attribute specs.

Background info

@tiptap/core is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 3.7.0 - 3.30.4.

How to fix this

Upgrade the @tiptap/core library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform