---
title: "Widget Security"
description: "How GlassHome keeps community widgets away from your data and your devices, and where the edges still are."
canonical: https://glasshome.app/docs/dash/widget-security
section: "Dashboards"
updated: 2026-10-11
---
# Widget Security

Community widgets are made by other people and run on your dashboard. Here is what keeps them in line, and where the gaps are.

## Widgets ask before they act

To switch something, a widget asks GlassHome. GlassHome checks what you said yes to when you installed it. One written to cheat can skip asking today; see [Not covered yet](#not-covered-yet).

When you install a widget, GlassHome shows what it wants in plain words, like **"Climate" wants to: Control your thermostat**. You approve that list and nothing more. A widget that asks for a whole floor or room gets only the devices in it you approved. An update that wants more asks you again.

## What stays at home

- **What a widget sees.** Your browser lets the dashboard talk only to your home server and GlassHome. A widget that can see your front door can only send it out through live video, below.
- **Your Home Assistant login.** It lives on your home server and never reaches the app, so no widget can copy it.

## Sealed widgets

Today a widget written to cheat can skip the question. It runs in the same space as the app, so it can act without asking GlassHome first. Sealed widgets close that gap: each widget runs sealed off, and asking is its only way out.

From Dash 1.5, every widget runs sealed. There is no switch to turn it off.

## Not covered yet

- **A widget written to cheat can skip the question.** It can then control things you did not approve. Sealed widgets close this. Until then, install widgets from makers you trust.
- **Live video can leave home.** Browsers do not apply the dashboard's rules to live video connections, which the camera widget uses. A widget written to cheat could open one to its own server. Sealed widgets close this too.
- **Nobody reviews every widget's code yet.** Your safety comes from these rules and the permissions you grant. A review step for the catalog may come later.

> **For the technically curious:** Data stays home through a strict Content-Security-Policy egress allowlist, and GlassHome refuses any widget service call that names a URL. The Home Assistant access token lives only on your GlassHome server, which authenticates the relayed WebSocket itself; the app and its Web Worker hold no token. The worker checks every widget service call against the same capability grants the consent screen showed you. Widgets render in a closed shadow root, built-in objects are frozen, and `eval` is off. Every published bundle is SHA-256 verified before it is served. Sealed widgets run in QuickJS compiled to WebAssembly, one context per installed widget (display-only widgets from the same publisher share one), with no DOM, network or storage; the host applies each widget's page changes through an allowlist and caps its CPU time and memory.

## Reporting a security issue

Found a way around any of this? Email **[contact@glasshome.app](mailto:contact@glasshome.app)** with steps to reproduce, or find me on the [GlassHome Discord](https://discord.gg/FJYdeDmrzv). I read every report and gladly credit people who report responsibly.