Intel

AIKIDO-2025-10556

@clerk/clerk-js is vulnerable to Cross-site Scripting (XSS)

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

45

Medium Risk

This Affects:

js@clerk/clerk-js
4.0.0 - 5.82.0
Fixed in 5.83.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to client-side attacks due to inadequate sanitization of the href attribute in the Link component. The code fails to validate or sanitize URLs, allowing dangerous schemes (e.g., javascript:, data:) in the href prop. By supplying a malicious href (e.g., through user-controlled inputs), an attacker could execute arbitrary JavaScript when a victim clicks the link, compromising user sessions, stealing sensitive data, or performing unauthorized actions within the application.

Who does this affect?

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

Background info

@clerk/clerk-js is vulnerable to Cross-site Scripting (XSS) in versions 4.0.0 - 5.82.0.

How to fix this

Upgrade the @clerk/clerk-js library to the patch version.