Intel

AIKIDO-2024-10038

@braintree/sanitize-url is vulnerable to Cross-site Scripting (XSS)

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

12

Low Risk

This Affects:

JS@braintree/sanitize-url
1.0.0 - 7.0.0
Fixed in 7.0.1
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to Cross-site Scripting (XSS) due to improper URL sanitation in the sanitizeUrl function (index.ts). This issue is of low severity, as the URL requires additional processing to be exploited.

Who does this affect?

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

Background info

@braintree/sanitize-url is vulnerable to Cross-site Scripting (XSS) in versions 1.0.0 - 7.0.0.

How to fix this

Upgrade the @braintree/sanitize-url library to the patch version.