Vulnerabilities in pkg:npm/@eigenpal/docx-editor-react

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@eigenpal/docx-editor-react

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@eigenpal/docx-editor-react. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x7m8-jrm8-hpvx - HIGH @eigenpal/docx-editor-react: CSS injection and print-time XSS via unescaped embedded font-family name

GHSA-x7m8-jrm8-hpvx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x7m8-jrm8-hpvx
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @eigenpal/docx-editor-react
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

@eigenpal/docx-editor-core fixed: 1.8.3
npm install @eigenpal/docx-editor-core@1.8.3
@eigenpal/docx-editor-react fixed: 1.8.3
npm install @eigenpal/docx-editor-react@1.8.3
Verify Direct and Transitive Dependencies

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

## 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`.

GHSA-x7m8-jrm8-hpvx Affected @eigenpal/docx-editor-react Versions

2 component(s)
Fixed Versions:
1.8.3
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?
GHSA-x7m8-jrm8-hpvx is a security vulnerability in @eigenpal/docx-editor-react involving CSS injection and print-time XSS via unescaped embedded font-family name under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @eigenpal/docx-editor-react versions are affected?
Affected versions include releases prior to 1.8.3 across affected packages: @eigenpal/docx-editor-core, @eigenpal/docx-editor-react.
What version fixes GHSA-x7m8-jrm8-hpvx?
Upgrading to 1.8.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @eigenpal/docx-editor-core affected?
Yes, @eigenpal/docx-editor-core is affected in releases prior to 1.8.3. Upgrade your dependency to 1.8.3 or later.
Is @eigenpal/docx-editor-react affected?
Yes, @eigenpal/docx-editor-react is affected in releases prior to 1.8.3. Upgrade your dependency to 1.8.3 or later.
What is the CVSS score of GHSA-x7m8-jrm8-hpvx?
GHSA-x7m8-jrm8-hpvx has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-x7m8-jrm8-hpvx?
GHSA-x7m8-jrm8-hpvx is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for GHSA-x7m8-jrm8-hpvx?
Run the dependency tree command: 'npm ls @eigenpal/docx-editor-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}