CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-33044

CVE-2026-33044: Stored Cross-Site Scripting in Home Assistant Map-Card

Alon Barad
Alon Barad
Software Engineer

Mar 28, 2026·7 min read·40 visits

Executive Summary (TL;DR)

A stored XSS vulnerability in the Home Assistant Map-card allows authenticated attackers to execute arbitrary JavaScript in a victim's browser context by injecting HTML payloads into device entity names.

Home Assistant versions prior to 2026.01 are vulnerable to a stored Cross-Site Scripting (XSS) flaw in the Map-card component. An authenticated attacker can inject malicious JavaScript into an entity name, which executes when a victim hovers over historical movement data points in the dashboard.

Vulnerability Overview

Home Assistant utilizes a modular frontend architecture where users can construct customized dashboards using various card components. The Map-card component visualizes geographical data, allowing users to track the location of entities such as mobile devices or vehicles. When the hours_to_show attribute is configured, this card generates a historical movement trail consisting of discrete data points and connecting lines.

A trust boundary violation occurs within the rendering logic of this historical movement trail. The Home Assistant backend permits authenticated users with appropriate permissions to modify the friendly names of entities. These entity names are subsequently stored in the core state machine and broadcasted to connected frontend clients via the WebSocket API or standard HTTP endpoints.

The vulnerability, classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), manifests when the Map-card frontend processes these customized entity names. The frontend implementation fails to apply adequate HTML encoding or sanitization before interpolating the entity name into the Document Object Model (DOM) during tooltip generation. Consequently, any executable script embedded within the entity name will execute in the context of the user viewing the dashboard.

Root Cause Analysis

The underlying flaw resides in the event handling and UI rendering sequence of the Map-card's historical tracking feature. The mapping implementation relies on a third-party mapping library (typically Leaflet in the context of Home Assistant) to render map tiles and vector layers. The Home Assistant frontend acts as an orchestration layer, translating internal state data into map markers and interaction events.

When hours_to_show is active, the frontend retrieves historical location data arrays from the backend. For each coordinate in the dataset, the code creates an interactive marker on the map layer. An event listener is attached to these markers to handle mouseover or hover events. The callback function for this event constructs a tooltip or popup element designed to display contextual information, including the entity's current state and its configured friendly name.

The specific failure occurs during the construction of this popup element. Instead of utilizing safe DOM manipulation methods like textContent or employing a robust sanitization library before using innerHTML, the application directly concatenates the raw entity name string into the HTML template of the popup. When the browser parses this newly inserted HTML, it encounters the injected payload, constructs the corresponding DOM nodes, and evaluates any inline scripts or event handlers present in the malicious string.

Code Analysis

The vulnerability pattern involves rendering unescaped user-controlled input within a dynamic UI component. Home Assistant's frontend heavily utilizes Web Components and the Lit library. While Lit inherently escapes text interpolated via standard bindings, vulnerabilities arise when developers intentionally bypass this mechanism to render dynamic HTML structures, often for custom formatting within tooltips.

The vulnerable execution flow resembles the following pattern where raw HTML is injected into a Leaflet popup. The attacker-controlled entity.name is passed directly into a string literal that is subsequently processed as HTML.

// Vulnerable Implementation Pattern
marker.on('mouseover', function (e) {
  const entityName = stateObj.attributes.friendly_name || stateObj.entity_id;
  // Flaw: entityName is not sanitized before DOM insertion
  const popupContent = `<div class="tooltip-header">${entityName}</div>`;
  marker.bindPopup(popupContent).openPopup();
});

The remediation strategy requires enforcing strict contextual output encoding. The patched versions address this by ensuring that the entity name is treated strictly as a text node or by passing it through an HTML encoding function prior to interpolation. This prevents the browser's HTML parser from interpreting structural characters like < and >.

// Patched Implementation Pattern
import { escapeHTML } from '../../utils/string';
 
marker.on('mouseover', function (e) {
  const entityName = stateObj.attributes.friendly_name || stateObj.entity_id;
  // Fix: The entityName is strictly encoded
  const safeEntityName = escapeHTML(entityName);
  const popupContent = `<div class="tooltip-header">${safeEntityName}</div>`;
  marker.bindPopup(popupContent).openPopup();
});

Exploitation

Exploitation of CVE-2026-33044 requires the attacker to fulfill specific prerequisites. First, the attacker must possess an authenticated session with sufficient privileges to modify entity attributes, specifically the friendly name of a location-aware device. Second, a target user must access a dashboard containing a Map-card explicitly configured with the hours_to_show property, and the modified entity must be included in the card's entities list.

The attack is initiated by injecting a Cross-Site Scripting payload into the entity's name. A standard payload leverages the <img> tag with an invalid source and an onerror event handler. The attacker sets the entity name to test <img src=x onerror=alert(document.domain) />. This can be achieved via the Home Assistant UI, API, or by manipulating the device integration providing the location data.

The execution phase is completely dependent on victim interaction. When the victim navigates to the compromised dashboard, the Map-card initializes and renders the historical movement trail. The payload remains dormant until the victim moves their cursor over one of the plotted data points. This hover action triggers the mouseover event, causing the vulnerable JavaScript to render the popup containing the unescaped payload, which the browser then executes immediately.

Impact Assessment

Successful exploitation of this vulnerability results in high-impact consequences within the context of the Home Assistant application. The injected JavaScript executes with the same privileges as the victim user. In modern single-page applications like Home Assistant, this provides the attacker with comprehensive access to the application's internal API state, DOM elements, and browser storage mechanisms.

The primary threat vector is session hijacking and account takeover. The malicious script can extract long-lived access tokens stored in the browser's localStorage or sessionStorage. With these tokens, the attacker can establish an independent, authenticated API connection to the Home Assistant instance, bypassing the need for further interaction. Alternatively, the script can issue API requests directly via the existing WebSocket connection to change administrative passwords, create new administrative users, or disable security integrations.

The CVSS 4.0 vector CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P accurately reflects this severity. While the exploit requires low privileges (PR:L) and specific user interaction (UI:A), the subsequent impact on confidentiality, integrity, and availability is high (VC:H/VI:H/VA:H). The vulnerability also affects subsequent systems (SC:H/SI:H/SA:H), as gaining administrative control over Home Assistant grants the attacker control over physical smart home devices, alarm systems, and potentially the underlying host operating system depending on the deployment architecture.

Remediation

The primary and most effective remediation for CVE-2026-33044 is to upgrade the Home Assistant Core and Frontend components to version 2026.01 or later. This release introduces comprehensive output encoding within the Map-card component, ensuring that all entity names are properly sanitized before DOM insertion regardless of the trigger event. Administrators should apply this update immediately through their standard deployment mechanisms.

In environments where immediate patching is not feasible, administrators can implement temporary mitigations. The vulnerability requires the hours_to_show configuration parameter to be active on the Map-card. By auditing Lovelace dashboard configurations and removing this parameter, the historical tracking feature is disabled, which neutralizes the specific vulnerable code path associated with the hover tooltips. This constitutes a functional downgrade but eliminates the immediate attack surface.

Furthermore, administrators should conduct a retroactive audit of the system state. Security personnel should inspect the Home Assistant database and API for anomalous entity names containing HTML tags or suspicious JavaScript keywords. Restricting the ability of lower-privileged users to rename entities through Role-Based Access Control (RBAC) modifications will also reduce the likelihood of internal exploitation.

Official Patches

Home AssistantOfficial Security Advisory and Patch Information

Technical Appendix

CVSS Score
7.3/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
EPSS Probability
0.05%
Top 86% most exploited

Affected Systems

Home Assistant CoreHome Assistant Frontend

Affected Versions Detail

Product
Affected Versions
Fixed Version
homeassistant
Home Assistant
>= 2020.02, < 2026.012026.01
AttributeDetail
CVE IDCVE-2026-33044
CWE IDCWE-79
Attack VectorNetwork
CVSS 4.0 Score7.3
ImpactAccount Takeover / Session Hijacking
Exploit StatusPoC Available
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Known Exploits & Detection

GitHub Security AdvisoryProof of concept outlining device renaming and dashboard configuration.

Vulnerability Timeline

Vulnerability publicly disclosed in GitHub Advisory Database.
2026-03-27
CVE ID CVE-2026-33044 assigned by NVD.
2026-03-27
Patch released in Home Assistant 2026.01.
2026-03-27

References & Sources

  • [1]GitHub Security Advisory GHSA-r584-6283-p7xc
  • [2]NVD Vulnerability Detail CVE-2026-33044
  • [3]CVE Record
  • [4]OSV Database Entry
  • [5]Researcher Advisory (Robin Lunde)

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•38 minutes ago•CVE-2026-118748
7.5

CVE-2026-118748: Unbounded Memory Allocation Denial of Service in ASP.NET Core Blazor Static-SSR

CVE-2026-118748 is a remote Denial of Service (DoS) vulnerability in Microsoft ASP.NET Core (.NET 11.0 preview releases prior to 11.0.0) and Microsoft Visual Studio 2026 (prior to 18.12.0). The flaw originates from unbounded resource allocation (CWE-770) within the Blazor static server-side rendering (static-SSR) validation pipeline, where dynamic or attacker-supplied form field identifiers are cached in a singleton-scoped memory structure without size limits or eviction policies. Unauthenticated remote attackers can exploit this condition over the network by sending repeated HTTP requests with unique field names, exhausting heap memory and terminating the host process via an unhandled OutOfMemoryException.

Alon Barad
Alon Barad
2 views•9 min read
•about 2 hours ago•CVE-2026-114150
5.9

CVE-2026-114150: Remote Information Disclosure via Uninitialized Pooled Memory in ASP.NET Core Response Buffering

CVE-2026-114150 is a network-accessible information disclosure vulnerability affecting Microsoft ASP.NET Core in .NET 11.0 preview releases and Microsoft Visual Studio 2026 prior to version 18.12.0. The flaw stems from the use of uninitialized resources (CWE-908) within response buffering components, specifically ResponseBufferingStream used by middleware such as HTTP Logging and Output Caching. Because rented memory segments from ArrayPool<byte> or MemoryPool<byte> are not cleared upon return or strictly bounded to the exact written byte count during subsequent reads, residual response payloads from earlier HTTP requests remain in the buffer tail. Downstream consumers or log sinks reading these buffers expose confidential cross-session data, including authentication tokens and personally identifiable information.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•CVE-2026-114146
9.0

CVE-2026-114146: Elevation of Privilege in ASP.NET Core SignalR Connection Dispatcher

An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.

Alon Barad
Alon Barad
5 views•11 min read
•about 4 hours ago•CVE-2026-109478
7.5

CVE-2026-109478: Algorithmic Complexity Denial of Service in ASP.NET Core Header Parsing

CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.

Alon Barad
Alon Barad
6 views•11 min read
•about 5 hours ago•CVE-2026-114147
7.5

CVE-2026-114147: Denial of Service via Memory Leak in ASP.NET Core SignalR Redis Backplane

CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 6 hours ago•CVE-2026-114156
6.5

CVE-2026-114156: Path Equivalence Security Feature Bypass in Microsoft ASP.NET Core

CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.

Amit Schendel
Amit Schendel
5 views•8 min read