# Security policy

When someone finds a problem in your app, they need a way to tell you that isn't a public issue, because a public issue tells everyone else before you've had a chance to fix it.

Source: https://ha-barkley.github.io/security/controls/security-policy/

From HASC, the Home Assistant Security Controls for integrations, cards and apps. A community catalog, not an official Home Assistant or Open Home Foundation project.

Each control has an ID, cited as HASC-CI-4, and a level from 1 to 3. "Level marker" means anyone can check the control from outside the project, and levels are graded on those controls only.

> **From the 2026 sweep.** 641 of 6,753 apps (9.5%) have a security policy. The [Marketplace report](https://ha-barkley.github.io/marketplace/2026/security-basics/) has more on this.

## Controls

### POL-1: Turn on private vulnerability reporting

*Level 1*

Settings → Advanced Security → Private vulnerability reporting → Enable. People then get a "Report a vulnerability" button on your Security and quality tab, and their report reaches you privately. You can ask questions, reject it, or accept it as a draft advisory to work in.

### POL-2: Add a SECURITY.md

*Level 1 · Level marker*

**Add a SECURITY.md** that points to it. In an organization, one `SECURITY.md` in its public `.github` repository covers every repository that doesn't have its own (see [Organizations](https://ha-barkley.github.io/security/controls/organizations/)).

`SECURITY.md`

```
# Security policy

## Reporting a problem

Please don't open a public issue. Report it privately through
GitHub: https://github.com/OWNER/REPO/security/advisories/new

I'll reply within 7 days and keep you posted until it's fixed.

## Supported versions

Only the latest release gets security fixes.
```

### POL-3: Point the issue form there too

*Withdrawn*

Withdrawn on November 27, 2026, because [REPO-2](https://ha-barkley.github.io/security/controls/repository/#repo-2) covers it: its issue form links the private report.

### POL-4: When a report comes in

*Level 1*

**When a report comes in,** fix it in the advisory's private fork, release the fix, then publish the advisory. You can request a CVE from the advisory. If your code is also published as a package on PyPI or npm, Dependabot then alerts the projects that depend on it.

### Check it worked

Open your repository's Security and quality tab while signed out. You should see the policy. Anyone who is signed in also gets a "Report a vulnerability" button on the Advisories page.

Barkley notes whether an app has a security policy.
