ha-mcp@5.0.3

Home Assistant MCP Server - Complete control of Home Assistant through MCP

  • latest version

    8.2.0

  • latest non vulnerable version

  • first published

    9 months ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the ha-mcp 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
    • M
    Cross-site Request Forgery (CSRF)

    ha-mcp is a Home Assistant MCP Server - Complete control of Home Assistant through MCP

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) in the exposed api/settings routes when accessed at the bare root path without authentication. An attacker can modify configuration settings, toggle feature flags, manage backups, restart the add-on, or alter approval policies by sending crafted HTTP requests to the affected endpoints. This is only exploitable if the Home Assistant add-on is installed with host_network: true and port 9583 is published, allowing unauthenticated access to the root-mounted routes.

    How to fix Cross-site Request Forgery (CSRF)?

    Upgrade ha-mcp to version 7.7.0 or higher.

    [,7.7.0)
    • H
    Cross-site Scripting (XSS)

    ha-mcp is a Home Assistant MCP Server - Complete control of Home Assistant through MCP

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the OAuth consent form rendering process. An attacker can execute arbitrary JavaScript in the server operator's browser by registering a client with a crafted client_name and convincing the operator to follow a malicious authorization URL. This is only exploitable if the application is running in OAuth mode (ha-mcp-oauth) with MCP_BASE_URL configured, and the server operator is persuaded to visit a crafted authorization link for an unrecognized application.

    How to fix Cross-site Scripting (XSS)?

    Upgrade ha-mcp to version 7.0.0 or higher.

    [,7.0.0)
    • M
    Server-side Request Forgery (SSRF)

    ha-mcp is a Home Assistant MCP Server - Complete control of Home Assistant through MCP

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ha_url parameter in the OAuth consent form and forged tokens in REST and WebSocket tool calls. An attacker can enumerate internal network hosts and open ports by submitting crafted URLs and analyzing distinct error messages returned by the server. This is only exploitable if the OAuth 2.1 DCR mode is enabled and the beta OAuth consent feature is used.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade ha-mcp to version 7.0.0 or higher.

    [,7.0.0)