PT-2026-24838 · Git+2 · Ha-Mcp+1

Yotampe-Pluto

·

Publicado

2026-03-11

·

Atualizado

2026-03-12

·

CVE-2026-32112

CVSS v3.1

6.8

Média

VetorAV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions ha-mcp versions prior to 7.0.0
Description ha-mcp is a Home Assistant MCP Server. Prior to version 7.0.0, the OAuth consent form renders user-controlled parameters using Python f-strings without proper HTML escaping. This allows an attacker who can reach the OAuth endpoint and convince the server operator to follow a crafted authorization URL to execute JavaScript in the operator's browser. This issue only affects users running the beta OAuth mode (ha-mcp-oauth), which requires explicit configuration and is not part of the standard setup. The vulnerability resides in the rendering of parameters like client name, client id, redirect uri, state, error message, error, and error description within the consent form.py file. An attacker can register a malicious client via the /register endpoint and then exploit the lack of HTML escaping to execute a JavaScript payload when the server operator visits a crafted authorization URL. The attack requires convincing the server operator to authorize an unfamiliar application. Successful exploitation could lead to the exfiltration of data entered into the consent form, including the Home Assistant Long-Lived Access Token.
Recommendations Upgrade to version 7.0.0.

Exploit

Correção

XSS

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2026-32112
GHSA-PF93-J98V-25PV

Produtos afetados

Ha-Mcp
Home Assistant Mcp Server