Cross-site Request Forgery (CSRF) Affecting ha-mcp package, versions [,7.7.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-HAMCP-17892725
  • published8 Jul 2026
  • disclosed7 Jul 2026
  • creditbharat

Introduced: 7 Jul 2026

CVE NOT AVAILABLE CWE-306  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade ha-mcp to version 7.7.0 or higher.

Overview

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.

CVSS Base Scores

version 4.0
version 3.1