Title: fix(file-viewer): upgrade docx-preview to 0.4.1 to close w:sym innerHTML XSS by waleedlatif1 · Pull Request #9574 · simstudioai/sim · GitHub
Open Graph Title: fix(file-viewer): upgrade docx-preview to 0.4.1 to close w:sym innerHTML XSS by waleedlatif1 · Pull Request #9574 · simstudioai/sim
X Title: fix(file-viewer): upgrade docx-preview to 0.4.1 to close w:sym innerHTML XSS by waleedlatif1 · Pull Request #9574 · simstudioai/sim
Description: Summary
Bump docx-preview 0.3.7 → 0.4.1 to close a stored XSS in the workspace DOCX preview
0.3.7's renderSymbol wrote the raw w:sym/@w:char attribute into span.innerHTML, so a crafted .docx (e.g. w:char="41;") ran script on the app origin for any workspace member who previewed it
Post-render sweeps can't fix this in-app: the renderer creates nodes in window.document, so the injected
loads and fires onerror before renderAsync resolves
0.4.1 parses w:char as hex (parseInt(…, 16)) and renders it as a text node;