Intel

AIKIDO-2024-10303

@scalar/api-client is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 30, 2024

45

Medium Risk

This Affects:

js@scalar/api-client
0.1.1 - 2.1.9
Fixed in 2.1.10
Are you affected? Scan for Free

TL;DR

Affected versions of the package allow Cross-site Scripting (XSS). Blob URLs in object or iframe tags are executed in the same origin context as the host page without proper Content Security Policy (CSP) configuration.

Who does this affect?

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

Background info

@scalar/api-client is vulnerable to Cross-site Scripting (XSS) in versions 0.1.1 - 2.1.9.

How to fix this

Upgrade the @scalar/api-client library to the patch version.