CVE-2024-53386 Stage.js DOM Clobbering vulnerabilty

Medium 4.9 Published Updated

Attackers can execute arbitrary JavaScript via DOM clobbering in Stage.js, potentially compromising user sessions or data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-53386?

CVE-2024-53386 is a medium-severity cross-site scripting vulnerability in Piqnt Stage.js, published on 3 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Stage.js through 0.8.10 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.

Weakness: CWE-79, CWE-94

Which versions are affected by CVE-2024-53386?

2 open source packages ship an affected version, including stage-js. It affects 1 product.

PackageAffectedFixed in
stage-js npmAll versions to 0.8.10None
stage-js npmAll versions to 0.8.10None

Products include Piqnt Stage.js.

How do I fix CVE-2024-53386?

No fix has been published for CVE-2024-53386 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-53386 being exploited?

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

Sources

Also known as GHSA-fp3m-g5rc-4c28.

Is CVE-2024-53386 in your software?

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

Check your SBOMs for free