Intel

AIKIDO-2025-10811

tsup is vulnerable to Cross-Site Scripting

Cross-Site ScriptingCVE-2024-53384 Published Nov 17, 2025

21

Low Risk

This Affects:

JStsup
5.0.0 - 8.5.0
Fixed in 8.5.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to DOM Clobbering due to insufficient validation of script tags in the URL resolution logic. The getImportMetaUrl function insecurely relies on document.currentScript and document.baseURI without proper sanitization, allowing attackers to inject malicious HTML elements that override these properties. An attacker could exploit this by clobbering document.currentScript.src or document.baseURI with controlled values, potentially redirecting script imports to arbitrary malicious URLs and enabling cross-site scripting (XSS) or code execution.

Who does this affect?

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

Background info

tsup is vulnerable to Cross-Site Scripting in versions 5.0.0 - 8.5.0.

How to fix this

Upgrade the tsup library to the patch version.