Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-32112

CVE-2026-32112: ha-mcp OAuth Consent Form XSS Vulnerability

CVE-2026-32112 is a cross-site scripting flaw in ha-mcp Home Assistant MCP Server OAuth consent form that allows attackers to execute malicious JavaScript. This post explains its impact, affected versions, and mitigation steps.

Published: March 13, 2026

CVE-2026-32112 Overview

CVE-2026-32112 is a Cross-Site Scripting (XSS) vulnerability affecting ha-mcp, a Home Assistant MCP Server. Prior to version 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.

Critical Impact

This vulnerability allows attackers to execute arbitrary JavaScript in an authenticated user's browser session, potentially leading to session hijacking, credential theft, or unauthorized actions on behalf of the Home Assistant operator.

Affected Products

  • ha-mcp versions prior to 7.0.0
  • ha-mcp-oauth beta OAuth mode (requires explicit configuration)

Discovery Timeline

  • 2026-03-11 - CVE-2026-32112 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-32112

Vulnerability Analysis

This vulnerability stems from improper output encoding in the OAuth consent form rendering process. The ha-mcp OAuth implementation uses Python f-strings to dynamically construct HTML content that includes user-controlled parameters from the authorization URL. Because these parameters are not properly HTML-escaped before being embedded in the response, malicious JavaScript code can be injected and executed in the context of the victim's browser session.

The attack requires user interaction—specifically, the server operator must follow a crafted authorization URL. While this limits the attack surface, successful exploitation could grant an attacker significant control over the Home Assistant environment, including the ability to manipulate smart home devices, access sensitive configuration data, or pivot to other connected systems.

It's important to note that this vulnerability only affects users running the beta OAuth mode (ha-mcp-oauth), which is not part of the standard setup and requires explicit configuration by the operator.

Root Cause

The root cause is the use of Python f-strings for HTML template rendering without proper output encoding. When user-supplied input from OAuth authorization parameters (such as redirect_uri, client_id, or state) is directly interpolated into HTML output, the browser interprets any embedded script tags or event handlers as legitimate code. This is a classic case of CWE-79: Improper Neutralization of Input During Web Page Generation.

Attack Vector

The attack is network-based and requires user interaction. An attacker must craft a malicious authorization URL containing JavaScript payloads in one or more OAuth parameters. When the server operator clicks on or is redirected to this URL, the OAuth consent form renders the malicious input without sanitization, causing the embedded JavaScript to execute in the operator's authenticated browser session.

The attacker could deliver the malicious URL through various social engineering techniques such as phishing emails, forum posts, or malicious links disguised as legitimate Home Assistant resources.

Detection Methods for CVE-2026-32112

Indicators of Compromise

  • Unusual OAuth authorization requests containing HTML tags or JavaScript event handlers in URL parameters
  • Suspicious redirect_uri, client_id, or state parameters containing encoded script content (e.g., %3Cscript%3E)
  • Web server logs showing authorization URLs with abnormally long or encoded parameter values
  • Reports of unexpected browser behavior when accessing the ha-mcp OAuth consent form

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing potential XSS payloads in OAuth parameters
  • Monitor web server access logs for authorization requests with suspicious URL-encoded characters or script-like patterns
  • Deploy browser-based security controls that detect and prevent inline script execution
  • Enable Content Security Policy (CSP) headers to restrict script execution sources

Monitoring Recommendations

  • Review ha-mcp access logs for OAuth endpoint requests with unusual parameter lengths or encoded special characters
  • Set up alerts for failed or anomalous OAuth authorization flows
  • Monitor for any JavaScript errors or unexpected script execution in browser developer tools when using the OAuth consent form

How to Mitigate CVE-2026-32112

Immediate Actions Required

  • Upgrade ha-mcp to version 7.0.0 or later immediately
  • If upgrade is not immediately possible, disable the beta OAuth mode (ha-mcp-oauth) until patching is complete
  • Review access logs for any signs of exploitation attempts
  • Educate operators about the risks of clicking on untrusted authorization URLs

Patch Information

The vulnerability is fixed in ha-mcp version 7.0.0. Users should update their installations to this version or later to remediate the vulnerability. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Disable the beta OAuth mode (ha-mcp-oauth) if it is not required for operations
  • Implement a reverse proxy with XSS filtering capabilities in front of the ha-mcp service
  • Configure Content Security Policy (CSP) headers to prevent inline script execution
  • Restrict network access to the OAuth endpoint to trusted IP addresses only
bash
# Disable OAuth mode in ha-mcp configuration
# Edit your ha-mcp configuration file and ensure OAuth is disabled
# Example: In your configuration, set oauth_enabled to false
oauth_enabled: false

# Alternatively, restrict access via firewall rules
# Allow only trusted IPs to access the OAuth endpoint
iptables -A INPUT -p tcp --dport 8123 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8123 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechHa Mcp

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English