Prototype Pollution in Mwilliamson Mammoth.js
CVE-2026-97151
mammoth (aka mammoth.js) before 1.12.2 is vulnerable to prototype pollution when reading the styles defined in a document. Converting a crafted .docx file allows an attacker to add arbitrary properties to Object.prototype. In 1.11.0 through 1.12.1, applications that convert further documents in the same process and return the converted HTML can also disclose the contents of local server files (to the party supplying the documents) by setting externalFileAccess to true.
Vulnerability class: Prototype Pollution
Published · last modified .
EPSS exploit prediction
EPSS: 0.004 (29.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 29th percentile — 29.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
Weakness classification (CWE)
References
- raw.githubusercontent.com/mwilliamson/mammoth.js/master/NEWS (release-notes, vendor-advisory)
- www.npmjs.com/package/mammoth (product)
- github.com/mwilliamson/mammoth.js/commit/31f0c370be4b95ac4fa285fea3be970606735f… (patch)
- github.com/mwilliamson/mammoth.js/commit/2888fa158d67c1419199f152326e12a05618b5… (patch)