GHSA-x7m8-jrm8-hpvx: @eigenpal/docx-editor-react Cross-Site Scripting Vulnerability
HIGHGHSA-x7m8-jrm8-hpvx is a HIGH (CVSS 8.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @eigenpal/docx-editor-react libraries in the npm ecosystem. The issue involves css injection and print-time xss via unescaped embedded font-family name. Remediation is available by upgrading affected packages to version 1.8.3.
GHSA-x7m8-jrm8-hpvx at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix GHSA-x7m8-jrm8-hpvx
To remediate this vulnerability, upgrade all affected @eigenpal/docx-editor-react dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @eigenpal/docx-editor-core@1.8.3
npm install @eigenpal/docx-editor-react@1.8.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @eigenpal/docx-editor-core
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-x7m8-jrm8-hpvx, inspect your project dependencies using npm:
npm ls @eigenpal/docx-editor-core
Analyze the terminal output to locate any version of @eigenpal/docx-editor-react in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.3), your application is affected.
Note: The npm ls @eigenpal/docx-editor-core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @eigenpal/docx-editor-react, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-x7m8-jrm8-hpvx Affected @eigenpal/docx-editor-react Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@eigenpal/docx-editor-core
|
npm |
< 1.8.3
|
1.8.3
|
|
@eigenpal/docx-editor-react
|
npm |
< 1.8.3
|
1.8.3
|
References
Frequently Asked Questions
What is GHSA-x7m8-jrm8-hpvx?
Which @eigenpal/docx-editor-react versions are affected?
What version fixes GHSA-x7m8-jrm8-hpvx?
Is @eigenpal/docx-editor-core affected?
Is @eigenpal/docx-editor-react affected?
What is the CVSS score of GHSA-x7m8-jrm8-hpvx?
What CWE is associated with GHSA-x7m8-jrm8-hpvx?
How can I check npm dependencies for GHSA-x7m8-jrm8-hpvx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x7m8-jrm8-hpvx",
"modified" : "2026-09-10T15:06:16Z",
"published" : "2026-09-10T15:06:16Z",
"aliases" : [ ],
"summary" : "@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name",
"details" : "## Summary\nEmbedded 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>`\n into executable HTML on Print.\n\n## Impact\nOpening 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.\n\n## Remediation\nUpgrade 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`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@eigenpal/docx-editor-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.8.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@eigenpal/docx-editor-react"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.8.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eigenpal/docx-editor/security/advisories/GHSA-x7m8-jrm8-hpvx"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eigenpal/docx-editor"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-10T15:06:16Z",
"nvd_published_at" : null
}
}