@eigenpal/docx-editor-core
Affected
- introduced
0, fixed1.8.3(semver)
Fixed versions
1.8.3
Fix
- Fixed version
1.8.3npm install @eigenpal/[email protected]
Advisory
Also known as: None
@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name
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.
High Basis: The source's own band: HIGH
0, fixed 1.8.3 (semver)1.8.3
1.8.3npm install @eigenpal/[email protected]0, fixed 1.8.3 (semver)1.8.3
1.8.3npm install @eigenpal/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0