From de40fc7a980d0cc4015bf675126e5a19fb235b04 Mon Sep 17 00:00:00 2001 From: Sebastian Danielsson Date: Sun, 27 Sep 2026 23:50:20 +0200 Subject: [PATCH] fix(visualsubnetcalc, zpool-calc): escape user data before inserting HTML Visual Subnet Calculator loads its subnet map from `?c=` shareable links and imported configs, then wrote subnet keys, notes and colours into the table HTML unescaped. A crafted link could run script on the it-tools origin. addRow() now escapes the network, note and ancestor keys in join cells, and only accepts hex colours. Allocation results, validation issues, warnings, the network-boundary notice and caught exception messages are escaped as well. zpool-calc wrote the vdev type