CVE-2026-32112
MEDIUM 4.7CVSS 3.1ha-mcp has XSS via Unescaped HTML in OAuth Consent Form
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.
- Published
- 11 Mar 2026
- Last modified
- 13 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-pf93-j98v-25pvPYSEC-2026-2508
- Sources
- NVDJSONOSV GHSA-pf93-j98v-25pvJSONOSV PYSEC-2026-2508JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | homeassistant-ai | home_assistant_mcp_servercpe:2.3:a:homeassistant-ai:home_assistant_mcp_server:*:*:*:*:*:*:*:* |
< 7.0.0 | 7.0.0 |
| OSV | PyPI | ha-mcp | < 7.0.0 | 7.0.0 |
References
- https://github.com/homeassistant-ai/ha-mcp/security/advisories/GHSA-pf93-j98v-25pv · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-32112 · ADVISORY
- https://github.com/homeassistant-ai/ha-mcp · PACKAGE
- https://pypi.org/project/ha-mcp · PACKAGE
- https://github.com/advisories/GHSA-pf93-j98v-25pv · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 11 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Mar 2026)