Cross-site Scripting (DOM Clobbering) Affecting stage-js package, versions <1.0.0-alpha.1


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (DOM Clobbering) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-STAGEJS-9213188
  • published5 Mar 2025
  • disclosed3 Mar 2025
  • creditUnknown

Introduced: 3 Mar 2025

NewCVE-2024-53386  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade stage-js to version 1.0.0-alpha.1 or higher.

Overview

stage-js is a 2D HTML5 Rendering and Layout

Affected versions of this package are vulnerable to Cross-site Scripting (DOM Clobbering) by injecting malicious HTML into the src property of document.currentScript. An attacker can manipulate web page content (DOM clobbering) by injecting HTML that does not contain executable JavaScript but interferes with script execution.

CVSS Base Scores

version 4.0
version 3.1