{"id":"GHSA-x7m8-jrm8-hpvx","aliases":[],"status":"published","title":"@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name","description":"## Summary\nEmbedded font-family names (`word/fontTable.xml`) were interpolated unescaped into an injected `@font-face` `\u003cstyle\u003e` and into the print window's `document.write()`. A crafted name injects page-wide CSS on open, and breaks out of `\u003cstyle\u003e`\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, `\u003c \u003e`, and CSS newlines), and the print window is assembled with DOM APIs instead of `document.write`.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-09-10T15:06:16Z","modified":"2026-09-10T15:15:06Z","fixes":[{"ecosystem":"npm","package":"@eigenpal/docx-editor-core","fixed_in":["1.8.3"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"@eigenpal/docx-editor-react","fixed_in":["1.8.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@eigenpal/docx-editor-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.8.2"},{"fixed":"1.8.3"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@eigenpal/docx-editor-react","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.8.2"},{"fixed":"1.8.3"}]}]},{"source":"osv","ecosystem":"npm","package":"@eigenpal/docx-editor-core","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}]},{"source":"osv","ecosystem":"npm","package":"@eigenpal/docx-editor-react","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}]}],"references":[{"url":"https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x7m8-jrm8-hpvx"},{"url":"https://github.com/eigenpal/docx-editor","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-x7m8-jrm8-hpvx","title":"@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name","description":"## Summary\nEmbedded font-family names (`word/fontTable.xml`) were interpolated unescaped into an injected `@font-face` `\u003cstyle\u003e` and into the print window's `document.write()`. A crafted name injects page-wide CSS on open, and breaks out of `\u003cstyle\u003e`\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, `\u003c \u003e`, and CSS newlines), and the print window is assembled with DOM APIs instead of `document.write`.","status":"published","published":"2026-09-10T15:06:16Z","modified":"2026-09-10T15:06:17Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:41:15.803194Z"}],"osv":[{"id":"GHSA-x7m8-jrm8-hpvx","title":"@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name","description":"## Summary\nEmbedded font-family names (`word/fontTable.xml`) were interpolated unescaped into an injected `@font-face` `\u003cstyle\u003e` and into the print window's `document.write()`. A crafted name injects page-wide CSS on open, and breaks out of `\u003cstyle\u003e`\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, `\u003c \u003e`, and CSS newlines), and the print window is assembled with DOM APIs instead of `document.write`.","status":"published","published":"2026-09-10T15:06:16Z","modified":"2026-09-10T15:15:06.004637443Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:59.484835Z"}]}}
