GHSA-x7m8-jrm8-hpvx

Suggest an improvement
Source
https://github.com/advisories/GHSA-x7m8-jrm8-hpvx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-x7m8-jrm8-hpvx/GHSA-x7m8-jrm8-hpvx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x7m8-jrm8-hpvx
Published
2026-09-10T15:06:16Z
Modified
2026-09-10T15:15:06Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
@eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-10T15:06:16Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

npm / @eigenpal/docx-editor-core

Package

Name
@eigenpal/docx-editor-core
View open source insights on deps.dev
Purl
pkg:npm/%40eigenpal/docx-editor-core

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.8.3

Database specific

last_known_affected_version_range
"<= 1.8.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-x7m8-jrm8-hpvx/GHSA-x7m8-jrm8-hpvx.json"

npm / @eigenpal/docx-editor-react

Package

Name
@eigenpal/docx-editor-react
View open source insights on deps.dev
Purl
pkg:npm/%40eigenpal/docx-editor-react

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.8.3

Database specific

last_known_affected_version_range
"<= 1.8.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-x7m8-jrm8-hpvx/GHSA-x7m8-jrm8-hpvx.json"