# CVE-2026-97151: mammoth (aka mammoth.js) before 1.12.2 is vulnerable to prototype pollution when reading the styles defined in a document.

- Severity: High 8.4 (CVSS:4.0, scored by mitre) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-09-24T03:08:15.523Z
- Modified: 2026-09-24T21:04:40.340Z
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- mammoth: before 1.12.2

## References

- <https://raw.githubusercontent.com/mwilliamson/mammoth.js/master/NEWS> (release-notes, vendor-advisory)
- <https://www.npmjs.com/package/mammoth> (product)
- <https://github.com/mwilliamson/mammoth.js/commit/31f0c370be4b95ac4fa285fea3be970606735f16> (patch)
- <https://github.com/mwilliamson/mammoth.js/commit/2888fa158d67c1419199f152326e12a05618b53e> (patch)

## Sources

- CVE List: [CVE-2026-97151](https://www.cve.org/CVERecord?id=CVE-2026-97151), CVE Terms of Use, modified 2026-09-24
- NVD: [CVE-2026-97151](https://nvd.nist.gov/vuln/detail/CVE-2026-97151), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-97151 · Whole record: https://cve.day/CVE-2026-97151.json · Rebuilt by cve.day 2026-11-25T22:59:40.736Z
