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

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-02)
- Published: 2026-03-11T20:42:30.381Z
- Modified: 2026-07-13T16:42:31.702Z
- Also known as: GHSA-pf93-j98v-25pv, PYSEC-2026-2508
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- homeassistant-ai ha-mcp: < 7.0.0
- ha-mcp (PyPI): before 7.0.0
- homeassistant-ai home_assistant_mcp_server: before 7.0.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-32112](https://www.cve.org/CVERecord?id=CVE-2026-32112), CVE Terms of Use, modified 2026-03-12
- GitHub Advisory Database: [GHSA-pf93-j98v-25pv](https://github.com/advisories/GHSA-pf93-j98v-25pv), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-32112](https://nvd.nist.gov/vuln/detail/CVE-2026-32112), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2508](https://osv.dev/vulnerability/PYSEC-2026-2508), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-32112 · Whole record: https://cve.day/CVE-2026-32112.json · Rebuilt by cve.day 2026-11-25T22:59:15.788Z
