happy-dom@20.8.6

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.

  • latest version

    20.8.9

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    11 days ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Insertion of Sensitive Information Into Sent Data

    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 Insertion of Sensitive Information Into Sent Data via the fetch requests when using the credentials: "include" option. An attacker can obtain cookies belonging to the page origin by initiating requests to a different target origin, potentially leading to unauthorized access to sensitive information.

    How to fix Insertion of Sensitive Information Into Sent Data?

    Upgrade happy-dom to version 20.8.9 or higher.

    <20.8.9
    • H
    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 in the ECMAScript module compilation process. An attacker can execute arbitrary code on the host system by injecting malicious JavaScript expressions into export {} declarations, which are then directly interpolated and evaluated without proper sanitization. This is only exploitable if JavaScript evaluation is explicitly enabled by the user.

    How to fix Arbitrary Code Injection?

    Upgrade happy-dom to version 20.8.8 or higher.

    >=15.10.0 <20.8.8