mcp-cve-project

CVE-2026-32112 | ha-mcp (OAuth consent f-string injection) | Medium | 6.8

CVE Information

Field Value
CVE / NVD CVE-2026-32112
EPSS score 0.001810000 (FIRST EPSS, 2026-06-30)
Date (index) 2026-03-27
Affected product (index) ha-mcp (OAuth consent f-string injection)
GHSA ID GHSA-pf93-j98v-25pv
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-03-27
Ecosystem pip
Component ha-mcp (OAuth consent f-string injection)
CVSS score 4.7 MEDIUM CVSS v3.1 (NVD)
CWE CWE-79
Affected versions ha-mcp < 7.0.0
Fixed versions 7.0.0.
Fix status Patched
Exploit status Public CVE record
Notes Indexed from 2026-05-29 gap review backlog. Re-check NVD before compliance reporting.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Exposure depends on deployment: network reachability, ability to influence MCP configuration or tool arguments, and whether the MCP server/client runs with access to sensitive host resources, credentials, or internal networks.

CVE is because of what bug?

Confirm exact weakness in the NVD record and linked advisory. Primary CWE mapping: CWE-79.

MCP-specific impact / why it matters

MCP clients and servers bridge model-driven workflows to privileged tools and local execution. Weaknesses in auth, transport trust, or command handling can let untrusted content or users reach host execution, data exfiltration, or unauthorized tool invocation.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory diff.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP components to trusted users and networks; validate tool inputs; run with least privilege.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

Public advisories exist; do not host weaponized payloads in this repository.

Detection / verification

Patch

See NVD references and vendor release notes for CVE-2026-32112.