# GHSA-x7m8-jrm8-hpvx: @eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name

- Severity: High 8.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-10T15:06:16.000Z
- Modified: 2026-09-10T15:15:06.004Z
- Weaknesses: CWE-79

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

(As written by GitHub Advisory Database.)

## Affected

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

## References

- <https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx> (web)
- <https://github.com/eigenpal/docx-editor> (package)

## Sources

- GitHub Advisory Database: [GHSA-x7m8-jrm8-hpvx](https://github.com/advisories/GHSA-x7m8-jrm8-hpvx), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-x7m8-jrm8-hpvx · Whole record: https://cve.day/GHSA-x7m8-jrm8-hpvx.json · Rebuilt by cve.day 2026-11-25T22:56:46.989Z
