Skip to content
MediumVulnerability

GHSA-pf93-j98v-25pv: ha-mcp has XSS via Unescaped HTML in OAuth Consent Form

Published
Record updated
View JSON
Affected
  • ha-mcp < 7.0.0
Fixed in
7.0.0
  • released March 10, 2026, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

The ha-mcp OAuth consent form renders user-controlled parameters through Python f-strings without HTML escaping, so an attacker who registers a client with a malicious client_name via the /register endpoint can run JavaScript in the server operator's browser after that operator follows a crafted authorization URL. Only the beta OAuth mode (ha-mcp-oauth, requiring MCP_BASE_URL) is affected, not the standard stdio setup. Successful exploitation could exfiltrate data entered into the consent form, including the Home Assistant Long-Lived Access Token.

Mitigation

Upgrade to 7.0.0