← Back to scan
File as GitHub Issue repo: home-assistant/frontend

Push this scan report to home-assistant/frontend

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

JS: require() with non-literal

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED018 [MINED018] Unsafe Deserialization Pickle: pickle.loads / yaml.load (without Loader=SafeLo… build-scripts/gulp/gallery.js:50
CRIT SEC116 [SEC116] Ruby YAML.load / Marshal.load on untrusted input: `YAML.load` (pre-3.1) and `Mar… build-scripts/gulp/gallery.js:50
CRIT SEC079 [SEC079] Python: yaml.load without SafeLoader: yaml.load() without explicit SafeLoader ca… build-scripts/gulp/gallery.js:50
CRIT MINED019 [MINED019] Ssti Jinja From String: jinja2.Environment().from_string(user_input) — full RC… build-scripts/gulp/entry-html.js:107
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… build-scripts/babel-plugins/inline-cons…:31
CRIT MINED116 [MINED116] Workflow uses `secrets.NETLIFY_GALLERY_SITE_ID` on a `pull_request` trigger: T… .github/workflows/design_preview.yaml:52
CRIT MINED116 [MINED116] Workflow uses `secrets.NETLIFY_AUTH_TOKEN` on a `pull_request` trigger: This w… .github/workflows/design_preview.yaml:51
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/components/ha-markdown-element.ts:138
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/components/ha-ansi-to-html.ts:185
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… src/common/string/slugify.ts:6
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… src/common/string/is_date.ts:4
HIGH SEC006 [SEC006] XSS Risk: Direct HTML injection without sanitization. src/panels/lovelace/cards/hui-light-car…:194
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/common/integrations/protocolIntegra…:59
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/auth/ha-authorize.ts:227
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… cast/src/launcher/layout/hc-connect.ts:223
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). build-scripts/gulp/translations.js:195
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/common/url/search-params.ts:35
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … gallery/src/components/demo-card.ts:64
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … build-scripts/gulp/service-worker.js:38
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… src/dialogs/more-info/components/lights…:44
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… src/data/selector/format_selector_value…:25
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… build-scripts/gulp/entry-html.js:111
HIGH MINED118 [MINED118] Dockerfile FROM `mcr.microsoft.com/devcontainers/python:3.14` not pinned by di… .devcontainer/Dockerfile:1
HIGH JRN004 Consent is collected in UI without visible backend audit persistence build-scripts/gulp/fetch-nightly-transl…:78
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. src/panels/config/entities/entity-regis…:74
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/components/ha-markdown-element.ts:138
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/components/ha-ansi-to-html.ts:185
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … script/version_bump.js:78
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… gallery/src/pages/more-info/update.ts:21
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… gallery/src/pages/components/ha-faded.ts:9
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … src/panels/config/automation/ha-automat…:51
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … src/components/entity/ha-entity-states-…:42
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … demo/src/custom-cards/card-tools.js:149
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… gallery/src/ha-gallery.ts:117
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… demo/src/custom-cards/ha-demo-card.ts:57
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… cast/src/launcher/layout/hc-layout.ts:32
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. build-scripts/gulp/gallery.js:50
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED WEB004 robots.txt blocks the full public site public/robots.txt
MED JRN002 Browser storage is used for session token material src/common/auth/token_storage.ts:67
MED JRN002 Browser storage is used for session token material src/common/auth/token_storage.ts:44
MED DKR001 Docker final stage has no non-root USER .devcontainer/Dockerfile:1
MED AGT007 localStorage write failures are swallowed silently src/auth/ha-authorize.ts:326
MED AGT007 localStorage write failures are swallowed silently landing-page/src/ha-landing-page.ts:200
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/file_upload.ts:6
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/error_log.ts:19
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/error_log.ts:18
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/diagnostics.ts:33
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/diagnostics.ts:28
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/camera.ts:104
MED JRN003 Frontend API reference is not matched by discovered backend routes src/data/camera.ts:82
MED JRN003 Frontend API reference is not matched by discovered backend routes src/components/ha-addon-picker.ts:106
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/pages/lovelace/picture-elem…:33
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/pages/lovelace/glance-card.…:39
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/data/demo_states.js:552
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/data/demo_states.js:396
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/data/demo_states.js:372
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/data/demo_states.js:348
MED JRN003 Frontend API reference is not matched by discovered backend routes gallery/src/data/demo_states.js:324
MED AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 0.0% of discovered r…
MED WEB015 Public web app has no Content Security Policy index.html
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/config/voice-assistants/ha-c…:15
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/home/ha-panel-home.ts:351
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/energy/ha-panel-energy.ts:97
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/maintenance/ha-panel-mainten…:154
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/profile/ha-panel-profile.ts:13
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/panels/climate/ha-panel-climate.ts:152
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … src/fake_data/demo_panels.ts:9
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:128
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:110
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:101
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:93
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:85
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:77
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:69
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/panels/config/ha-panel-config.ts:61
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… src/data/quick_bar.ts:163
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… gallery/src/pages/components/ha-list.ts:320
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
LOW WEB005 robots.txt does not advertise a sitemap public/robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED047 [MINED047] Emoji In Source: Emoji ✅ ❌ 🚀 in code/comments — common AI output unless explic… src/common/string/slugify.ts:4
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… demo/src/custom-cards/card-tools.js:196
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. demo/src/ha-demo.ts:36
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. demo/src/custom-cards/ha-demo-card.ts:122
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. cast/src/receiver/layout/hc-lovelace.ts:14
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … gallery/src/components/demo-black-white…:56
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … demo/src/ha-demo.ts:46
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … cast/src/launcher/layout/hc-connect.ts:83
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… gallery/src/pages/lovelace/markdown-car…:163
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… gallery/src/pages/lovelace/entities-car…:408
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… cast/src/launcher/layout/hc-connect.ts:43
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. gallery/src/components/demo-black-white…:15
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. cast/src/launcher/layout/hc-connect.ts:224
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. cast/src/launcher/layout/hc-cast.ts:223
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. build-scripts/gulp/fetch-nightly-transl…:69
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … build-scripts/gulp/gallery.js:103
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … build-scripts/gulp/fetch-nightly-transl…:33
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … build-scripts/gulp/download-translation…:115
Reset to top 5 103 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `home-assistant/frontend`

**Score: 79/100 (B+)**  ·  103 findings  ·  scanned 2026-05-21 18:12 UTC  ·  523,463 LOC

| Severity | Count |
|---|---|
| CRITICAL | 7 |
| HIGH | 17 |
| MEDIUM | 56 |
| LOW | 5 |

📊 [Full filterable report](https://repobility.com/scan/c5fbe1f2-2dac-4c77-947a-f406588dcb31/)  ·  ![scorecard](https://repobility.com/scan/c5fbe1f2-2dac-4c77-947a-f406588dcb31/report.png?v=1779387123-s2)

### Top findings

1. **CRITICAL** `MINED018` — Unsafe Deserialization Pickle
   `build-scripts/gulp/gallery.js:50` · CWE-502 · ✓ Repobility
2. **CRITICAL** `SEC116` — Ruby YAML.load / Marshal.load on untrusted input
   `build-scripts/gulp/gallery.js:50` · A08:2021 Software & Data Integrity Failures
3. **CRITICAL** `SEC079` — Python: yaml.load without SafeLoader
   `build-scripts/gulp/gallery.js:50` · A05:2021 Security Misconfiguration
4. **CRITICAL** `MINED019` — Ssti Jinja From String
   `build-scripts/gulp/entry-html.js:107` · CWE-94 · ✓ Repobility
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `build-scripts/babel-plugins/inline-constants-plugin.cjs:31`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/c5fbe1f2-2dac-4c77-947a-f406588dcb31/_
Megaproject â high spam risk
Could not determine 'home-assistant/frontend' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.