GHSA-x7m8-jrm8-hpvx @eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| eigenpal @eigenpal/docx-editor-core(npm) | < 1.8.3; <= 1.8.2 | 1.8.3 | Fixed |
| eigenpal @eigenpal/docx-editor-react(npm) | < 1.8.3; <= 1.8.2 | 1.8.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| eigenpal @eigenpal/docx-editor-core(npm) | <= 1.8.2 | No fix listed |
| eigenpal @eigenpal/docx-editor-react(npm) | <= 1.8.2 | No fix listed |
| eigenpal @eigenpal/docx-editor-core(npm) | < 1.8.3 | 1.8.3 |
| eigenpal @eigenpal/docx-editor-react(npm) | < 1.8.3 | 1.8.3 |
References
- github.com vendor-advisory
- github.com
- github.com product