Intel

AIKIDO-2025-10451

@liveblocks/core is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 10, 2025

63

Medium Risk

This Affects:

JS@liveblocks/core
1.8.0 - 3.1.1
Fixed in 3.1.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@liveblocks/core is vulnerable to Cross-site Scripting (XSS) in versions 1.8.0 - 3.1.1.

How to fix this

Upgrade the @liveblocks/core library to the patch version.