GHSA-x7m8-jrm8-hpvx
HIGHGHSA-x7m8-jrm8-hpvx is a high-severity (CVSS 8.1) vulnerability in @eigenpal/docx-editor-core. O3 Security confirms whether GHSA-x7m8-jrm8-hpvx is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name
Real-World Exposure
@eigenpal/docx-editor-core📦@eigenpal/docx-editor-reactReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @eigenpal/docx-editor-core | all versions | 1.8.3 |
| 📦npm | @eigenpal/docx-editor-react | all versions | 1.8.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @eigenpal/docx-editor-core. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update @eigenpal/docx-editor-core to 1.8.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-x7m8-jrm8-hpvx is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-x7m8-jrm8-hpvx is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-x7m8-jrm8-hpvx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-x7m8-jrm8-hpvx in your dependencies?
O3 detects GHSA-x7m8-jrm8-hpvx across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.