happy-dom@14.10.2 vulnerabilities

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

Direct Vulnerabilities

Known vulnerabilities in the happy-dom package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • C
Arbitrary Code Injection

happy-dom is a Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the SyncFetchScriptBuilder class due to improper input sanitization. An attacker can exploit this vulnerability by passing malicious content into the src attribute of the <script> tag.

How to fix Arbitrary Code Injection?

Upgrade happy-dom to version 15.10.2 or higher.

<15.10.2