Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-32112 EUVD-2026-11385GHSA-pf93-j98v-25pvPYSEC-2026-2508

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

Published Mar 11, 2026 · Updated Mar 12, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
homeassistant-ai ha-mcp < 7.0.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ha-mcp < 7.0.0 7.0.0 GHSA-pf93-j98v-25pv

References