# GHSA-X7M8-JRM8-HPVX: @eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-09-10
- Modified: 2026-09-10

## Affected versions

- @eigenpal/docx-editor-core (npm): fixed in 1.8.3
- @eigenpal/docx-editor-react (npm): fixed in 1.8.3

## Description

## 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`.

## References

- https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx
- https://github.com/eigenpal/docx-editor

Page: https://cve.now/GHSA-X7M8-JRM8-HPVX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
