home-assistant-js-websocket@3.1.5 vulnerabilities

Home Assistant websocket client

  • latest version

    9.4.0

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    6 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the home-assistant-js-websocket package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    home-assistant-js-websocket is a Home Assistant websocket client

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the state parameter in the WebSocket authentication logic. An attacker can spoof WebSocket responses and execute this vulnerability by crafting a malicious link with a modified state parameter that redirects the frontend to an alternative WebSocket backend. This is only exploitable if the attacker can persuade the victim to click on a malicious link. Additionally, the ability to iframe the site from other origins can make the attack more covert, as a malicious website could hide the attack in the background

    How to fix Cross-site Scripting (XSS)?

    Upgrade home-assistant-js-websocket to version 8.2.0 or higher.

    <8.2.0