{"id":"GHSA-x7m8-jrm8-hpvx","aliases":["GHSA-x7m8-jrm8-hpvx"],"related":[],"kind":"vulnerability","state":"published","title":"@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name","summary":"## Summary\nEmbedded 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>`\n  into executable HTML on Print.\n\n## Impact\nOpening 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.\n\n## Remediation\nUpgrade 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`.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## Summary\nEmbedded 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>`\n  into executable HTML on Print.\n\n## Impact\nOpening 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.\n\n## Remediation\nUpgrade 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`.","format":"markdown","source":"ghsa"}],"published":"2026-09-10T15:06:16.000Z","modified":"2026-09-10T15:15:06.004Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.3"}],"ecosystem":"npm","package":"@eigenpal/docx-editor-core","purl":"pkg:npm/%40eigenpal/docx-editor-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.3"}],"ecosystem":"npm","package":"@eigenpal/docx-editor-react","purl":"pkg:npm/%40eigenpal/docx-editor-react","source":"ghsa"}],"references":[{"url":"https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/eigenpal/docx-editor","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7m8-jrm8-hpvx","url":"https://github.com/advisories/GHSA-x7m8-jrm8-hpvx","licence":"CC-BY-4.0","modified":"2026-09-10T15:15:06.004Z"}],"updatedAt":"2026-11-25T22:56:46.989Z"}