From 401c4b00b532db36d5acfd1775ec33e996c19f14 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Mon, 8 Jun 2026 19:11:14 -0500 Subject: [PATCH] fix(security): sanitize public widget render to close stored XSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The public, CSP-exempt widget render (GET /api/widgets/:id/render) inlined config values straight into ' }); + const html = await render('clock1'); + assert.ok(!html.includes('', max_items: '10);evil(' , background: CSS_BREAKOUT }); + const html = await render('rss1'); + assert.ok(!html.includes('', css: 'body{}' }); + const html = await render('text1'); + assert.ok(html.includes('