mammoth (aka mammoth.js) before 1.12.2 is vulnerable to prototype pollution when reading the styles defined in a document.
- CVSS
- 8.4High
- Chance of exploitation (EPSS)
- 0.36%
- Published
- Sep 24, 2026
- In the news
- Not yet
What to do
A serious security flaw that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 1.12.2
Affected versions
- Mwilliamson Mammoth.js
- Before 1.12.2
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.
Affected products
Get alerts for these →No product list yet. It usually appears within a few days of publication.
Timeline 1
Latest change: CVE-2026-97151 published (CVSS 8.4) (Sep 24, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Sep 24, 2026
- CVECVE-2026-97151 published (CVSS 8.4)CVE Program · 04:18 UTC
References 4
- github.com /mwilliamson/mammoth.js/commit/2888fa158d67c1419199f152326e12a05618b53e
- github.com /mwilliamson/mammoth.js/commit/31f0c370be4b95ac4fa285fea3be970606735f16
- raw.githubusercontent.com /mwilliamson/mammoth.js/master/NEWS
- www.npmjs.com /package/mammoth