@liveblocks/core is vulnerable to Cross-site Scripting (XSS)
63
Medium Risk
Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) due to improper URL validation in the URL sanitization function. The function only checks for URLs starting with http://, https://, or www., returning them unmodified or prepending https:// to www. inputs, while returning undefined for all other cases. Suppose the calling code falls back to the original unsanitized input when undefined is returned. In that case, an attacker can exploit this by supplying a malicious javascript: URL (e.g., javascript:alert(document.cookie)), which executes arbitrary code in the victim's browser when triggered.
You are affected if you are using a version that falls within the vulnerable range.
@liveblocks/core is vulnerable to Cross-site Scripting (XSS) in versions 1.8.0 - 3.1.1.
Upgrade the @liveblocks/core 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.

SOC 2Compliant
ISO 27001Compliant