Intel

AIKIDO-2026-152211

@lexical/link is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

50

Medium Risk

This Affects:

JS@lexical/link
0.11.0 - 0.47.0
Fixed in 0.48.0
Are you affected? Scan for Free

TL;DR

Affected versions of @lexical/link are vulnerable to Cross-site Scripting (XSS) because LinkNode.sanitizeUrl() fails open when new URL() throws. Malformed dangerous schemes (for example crafted javascript: or control-character-obfuscated URLs) that the parser rejects can still be navigated by some browsers, so the attacker-controlled value is written into the anchor href unchanged. The fix fails closed by neutralizing unparseable non-allowlisted schemes to about:blank.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders Lexical links from untrusted input (for example user-authored or collaborative content).

Background info

@lexical/link is vulnerable to Cross-site Scripting (XSS) in versions 0.11.0 - 0.47.0.

How to fix this

Upgrade the @lexical/link library to the patch version.