Impact
mammoth.js before version 1.12.2 reads style information from a DOCX document, and a crafted file can cause the library to add properties to Object.prototype. This prototype pollution allows an attacker to influence subsequent JavaScript execution within the same process and, if certain features are enabled, expose local server files via the externalFileAccess option. The weakness is a classic example of insecure prototype manipulation (CWE-1321).
Affected Systems
The vulnerability affects the mwilliamson mammoth.js library for all releases prior to 1.12.2. Versions 1.11.0 through 1.12.1 additionally expose local file contents when the externalFileAccess option is true during document conversion.
Risk and Exploitability
With a CVSS score of 8.4 the vulnerability is considered high severity. The EPSS score is currently unavailable, but the lack of listing in the CISA KEV catalog does not diminish the risk. The attack vector is likely to involve an attacker supplying a malicious DOCX to an application that processes files in the same runtime and returns HTML, enabling data leakage or arbitrary code execution.
OpenCVE Enrichment