@lexical/link is vulnerable to Cross-site Scripting (XSS)
50
Medium Risk
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.
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).
@lexical/link is vulnerable to Cross-site Scripting (XSS) in versions 0.11.0 - 0.47.0.
Upgrade the @lexical/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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant