Intel

AIKIDO-2026-152211

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 17, 2026
July 17, 2026

50

CVE Score

Medium

Cross-site Scripting (XSS)

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.

How do I fix this?

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

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).

Versions

0.11.0 - 0.47.0

Fixed in 0.48.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea