From 507e1385a6485a92853761db817c26f3bc4694d5 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sat, 23 May 2026 01:13:55 +0300 Subject: [PATCH] feat(ui/icon-select): defence-in-depth XSS sanitiser on icon channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every IconSelect caller was audited: each builds item.icon from a constant ICON_* literal, a lookup-table getter, or renderDeviceIcon(stored_id) — none of which embed user input today. The new sanitiseIcon() helper is the belt-and-braces guard for a future caller that forgets the trusted-SVG contract: reject icon strings containing