diff --git a/packages/producer/src/services/renderOrchestrator.test.ts b/packages/producer/src/services/renderOrchestrator.test.ts index 571994f53..0fa1988e4 100644 --- a/packages/producer/src/services/renderOrchestrator.test.ts +++ b/packages/producer/src/services/renderOrchestrator.test.ts @@ -2020,6 +2020,20 @@ describe("shouldPreferSingleWorkerDrawElement (DE priority inversion)", () => { expect(countElementTags('
')).toBe(1); }); + // CodeQL "incomplete multi-character sanitization": a single-pass replace + // can reform the very pattern it removed. Impact is nil here (the stripped + // string is counted, never rendered) but a reformed tag would perturb the + // count, so the strip runs to a fixed point. + it("strips script tags that reform after one pass", () => { + // Inner ", + // which pass 2 removes. A single pass would leave a stray tag behind. + expect(countElementTags("