@lexical/link is vulnerable to Cross-site Scripting (XSS)
50
CVE Score
Medium
Cross-site Scripting (XSS)
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.
Upgrade the @lexical/link library to the patch version.
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).
0.11.0 - 0.47.0
Fixed in 0.48.0@lexical/link is vulnerable to Cross-site Scripting (XSS) in versions 0.11.0 - 0.47.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.