CVE-2026-97151: High severity npm/mammoth vulnerability

Published Sep 24, 2026
·
Updated

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 Software

1 affected component
npm/mammoth<1.12.2, >=1.11.0<=1.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mammoth to a version that resolves this vulnerability.

    Fixed in 1.12.2

Event History

Sep 24, 2026
CVE Published
via MITRE·03:08 AM
Data Sourced
via MITRE·03:08 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·04:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to the local-file disclosure behavior?

The disclosure behavior applies to applications using mammoth versions 1.11.0 through 1.12.1 that convert additional documents in the same process and return the converted HTML to the party supplying documents. It requires externalFileAccess to be set to true.

2

What does an attacker need to provide to trigger the issue?

An attacker needs to supply a crafted .docx file for conversion. The crafted document can pollute Object.prototype through styles defined in the document.

3

Are applications using the default external-file setting affected by the file-disclosure scenario?

The described file-disclosure scenario specifically requires externalFileAccess to be true. The prototype-pollution issue is triggered by reading styles from a crafted document and is described as affecting versions before 1.12.2.

4

What version resolves the vulnerability?

Upgrade mammoth to version 1.12.2 or later. Versions before 1.12.2 are described as vulnerable to prototype pollution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203