CVE-2024-53384 tsup DOM Clobbering vulnerability

Medium 5.1 Published Updated

Attackers can execute arbitrary code via DOM clobbering in tsup, affecting developers using this JavaScript build tool.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-53384?

CVE-2024-53384 is a medium-severity cross-site scripting vulnerability in n/a, published on 3 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A DOM Clobbering vulnerability in tsup v8.3.4 allows attackers to execute arbitrary code via a crafted script in the import.meta.url to document.currentScript in cjs_shims.js components

Weakness: CWE-79

Which versions are affected by CVE-2024-53384?

2 open source packages ship an affected version, including tsup. It affects 1 product.

PackageAffectedFixed in
tsup npmAll versions to 8.3.4None
tsup npmAll versions to 8.3.4None

Products include Egoist Tsup.

How do I fix CVE-2024-53384?

No fix has been published for CVE-2024-53384 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-53384 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53384 exists.

Sources

Also known as GHSA-3mv9-4h5g-vhg3.

Is CVE-2024-53384 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free