Vulnerability · Published Mar 11, 2026 · Assigned by GitHub_M

CVE-2026-32112ha-mcp has XSS via Unescaped HTML in OAuth Consent Form

Medium 6.8

In plain English

A medium-severity cross-site scripting in ha-mcp from homeassistant-ai. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.2%top 87.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

ha-mcp is a Home Assistant MCP Server. Prior to 7.0.0, the ha-mcp OAuth consent form renders user-controlled parameters via Python f-strings with no HTML escaping. An attacker who can reach the OAuth endpoint and convince the server operator to follow a crafted authorization URL could execute JavaScript in the operator's browser. This affects only users running the beta OAuth mode (ha-mcp-oauth), which is not part of the standard setup and requires explicit configuration. This vulnerability is fixed in 7.0.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIha-mcp7.0.0GHSA-pf93-j98v-25pv
PyPIha-mcp7.0.0PYSEC-2026-2508

Affected products (as reported)

VendorProductVersions
homeassistant-ai ha-mcp < 7.0.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

References