{"id":"GHSA-x7m8-jrm8-hpvx","summary":"@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name","details":"## 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`.","modified":"2026-09-10T15:15:06.004637443Z","published":"2026-09-10T15:06:16Z","database_specific":{"github_reviewed_at":"2026-09-10T15:06:16Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx"},{"type":"PACKAGE","url":"https://github.com/eigenpal/docx-editor"}],"affected":[{"package":{"name":"@eigenpal/docx-editor-core","ecosystem":"npm","purl":"pkg:npm/%40eigenpal/docx-editor-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.8.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-x7m8-jrm8-hpvx/GHSA-x7m8-jrm8-hpvx.json"}},{"package":{"name":"@eigenpal/docx-editor-react","ecosystem":"npm","purl":"pkg:npm/%40eigenpal/docx-editor-react"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.8.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-x7m8-jrm8-hpvx/GHSA-x7m8-jrm8-hpvx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}