Intel

AIKIDO-2025-10283

@stripe/connect-js is vulnerable to HTML Clobbering

HTML Clobbering Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

20

Low Risk

This Affects:

JS@stripe/connect-js
3.0.0 - 3.3.22
Fixed in 3.3.23

TL;DR

Affected versions of this package are vulnerable to HTML clobbering, where malicious HTML elements can interfere with the initialization of connect.js. If the host page's <head> contains nested <a> tags with id= StripeConnect and name= init, it may falsely assume connect.js is initialized. An attacker can inject HTML like <a id='StripeConnect'><a id='StripeConnect' name='init' href='stripe'></a></a>, leading to improper script execution, security bypasses, or other unintended behaviors.

Who does this affect?

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

Background info

@stripe/connect-js is vulnerable to HTML Clobbering in versions 3.0.0 - 3.3.22.

How to fix this

Upgrade the @stripe/connect-js library to the patch version.