CVE-2024-53384 tsup DOM Clobbering vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
tsup npm | All versions to 8.3.4 | None |
tsup npm | All versions to 8.3.4 | None |
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.