Skip to content
Heist/ feed
High

CVE-2026-97151

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-97151

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-97151

mammoth.js

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/mwilliamson/mammoth.js",
    "vendor": "mwilliamson",
    "modules": [
      "docx styles reader"
    ],
    "product": "mammoth.js",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "1.12.2",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/mammoth",
    "packageName": "mammoth",
    "programFiles": [
      "lib/docx/styles-reader.js"
    ],
    "collectionURL": "https://registry.npmjs.org",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "readStylesXml"
      }
    ]
  }
]
Related CVEs
CVE-2026-97151

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#583 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement