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 propertie
mwilliamson mammoth.js
CVSS
8.4HighExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.36%Chance of exploitation activity in the next 30 days, higher than 28% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 1.12.2mammoth.jsCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from CVE List
Affected versions 1
- mammoth.jsaffected: all versions before 1.12.2CVE List
References 4
- github.com/mwilliamson/mammoth.js/commit/31f0c370be4b95ac4fa285fea3be970606735f16Fixvia CVE List
- github.com/mwilliamson/mammoth.js/commit/2888fa158d67c1419199f152326e12a05618b53eFixvia CVE List
- raw.githubusercontent.com/mwilliamson/mammoth.js/master/NEWSAdvisoryvia CVE List
- npmjs.com/package/mammothReferencevia CVE List