GHSA-x7m8-jrm8-hpvx: @eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name
Summary Embedded font-family names (word/fontTable.xml) were interpolated unescaped into an injected @font-face and into the print window's document.write(). A crafted name injects page-wide CSS on open, and breaks out of into executable HTML on Print.
Published Sep 10, 2026
Affected packages
@eigenpal/docx-editor-core
- Ecosystem
- npm
- Affected
- <= 1.8.2
- Fixed in
- 1.8.3
- Check
npm ls @eigenpal/docx-editor-core
@eigenpal/docx-editor-react
- Ecosystem
- npm
- Affected
- <= 1.8.2
- Fixed in
- 1.8.3
- Check
npm ls @eigenpal/docx-editor-react
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Embedded font-family names (word/fontTable.xml) were interpolated unescaped into an injected @font-face <style> and into the print window's document.write(). A crafted name injects page-wide CSS on open, and breaks out of <style> into executable HTML on Print.
Impact
Opening a crafted .docx applies attacker-controlled CSS page-wide with zero clicks (overlay/phishing, attribute-selector exfiltration of input values, tracking beacons). Clicking Print escalates to script execution in the embedder's origin.
Remediation
Upgrade to 1.8.3. Font names are CSS-escaped before interpolation (quotes, backslash, < >, and CSS newlines), and the print window is assembled with DOM APIs instead of document.write.
Credited to samcorcos.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
