The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-11849

CVE-2025-11849: Mammoth Path Traversal Vulnerability

CVE-2025-11849 is a path traversal flaw in the Mammoth package that allows attackers to read arbitrary files or consume excessive resources via malicious docx files. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 17, 2026

CVE-2025-11849 Overview

CVE-2025-11849 is a Directory Traversal vulnerability affecting the Mammoth document conversion library across multiple programming language implementations. The vulnerability exists in versions from 0.3.25 and before 1.11.0, allowing attackers to read arbitrary files on systems where document conversion is performed. The flaw stems from insufficient path and file type validation when processing docx files containing images with external links.

Critical Impact

Attackers can read arbitrary sensitive files on the target system or cause resource exhaustion by crafting malicious docx files that link to special device files such as /dev/random or /dev/zero.

Affected Products

  • mammoth (JavaScript/npm) versions from 0.3.25 to before 1.11.0
  • mammoth (Python/PyPI) versions from 0.3.25 to before 1.11.0
  • mammoth (.NET/NuGet) versions from 0.3.25 to before 1.11.0
  • org.zwobble.mammoth:mammoth (Java/Maven) versions before 1.11.0

Discovery Timeline

  • 2025-10-17 - CVE-2025-11849 published to NVD
  • 2025-10-21 - Last updated in NVD database

Technical Details for CVE-2025-11849

Vulnerability Analysis

This Directory Traversal vulnerability (CWE-22) occurs in the Mammoth library's handling of external file references within docx documents. When processing a docx file, the library reads images and other resources that may be referenced either as embedded content (using the r:embed attribute) or as external links (using the r:link attribute). The vulnerability arises because the library did not properly validate or restrict external file paths before resolving and reading them.

When a malicious docx file contains an image reference with an r:link attribute pointing to a local file path, the library resolves this URI to an absolute file path on the system. The content is then read, base64-encoded, and included directly in the HTML output as a data URI. This behavior enables an attacker to exfiltrate arbitrary file contents through the converted HTML output.

Additionally, attackers can exploit this flaw to cause denial of service conditions by crafting docx files that reference special device files like /dev/random or /dev/zero, potentially causing excessive resource consumption or system hangs.

Root Cause

The root cause is the lack of path validation and file type restrictions when the library processes external file references in docx documents. The externalFileAccess option was enabled by default (true), allowing the library to read any file accessible to the process without restricting access to sensitive system paths or device files.

Attack Vector

The attack requires user interaction where a victim must process a maliciously crafted docx file using the vulnerable Mammoth library. The attacker crafts a docx file containing image references with r:link attributes pointing to sensitive local files (e.g., /etc/passwd, configuration files, or application secrets). When the victim's application converts this document to HTML, the referenced files are read and their contents are embedded in the output.

The security patch disables external file access by default, as shown in the following code changes:

text
* Ignore style definitions using a style ID that has already been used.

-* Support disabling external file accesses using the externalFileAccess option.
+* Disable external file accesses by default. External file access can be enabled
+  using the externalFileAccess option.

* Handle numbering levels defined without an index.

Source: GitHub Commit Note

The implementation change in lib/options-reader.js:

javascript
];

var standardOptions = exports._standardOptions = {
-    externalFileAccess: true,
+    externalFileAccess: false,
    transformDocument: identity,
    includeDefaultStyleMap: true,
    includeEmbeddedStyleMap: true

Source: GitHub Commit Note

Detection Methods for CVE-2025-11849

Indicators of Compromise

  • Unusual file access patterns from document conversion processes, particularly reads of sensitive system files
  • Docx files containing r:link attributes referencing local file paths outside expected directories
  • HTML output containing unexpectedly large base64-encoded data URIs
  • Process crashes or hangs when converting docx files (indicating attempts to read device files)

Detection Strategies

  • Monitor file system access from applications using Mammoth library for reads to sensitive paths like /etc/, /proc/, or application configuration directories
  • Implement content inspection on uploaded docx files to detect r:link attributes with suspicious file path references
  • Review converted HTML output for unexpected base64-encoded content that may indicate file exfiltration
  • Use application-level logging to track document conversion operations and correlate with file access events

Monitoring Recommendations

  • Enable detailed file access logging for processes running document conversion services
  • Implement alerts for document conversion processes accessing files outside expected working directories
  • Monitor for unusual resource consumption patterns that may indicate attempts to read infinite streams from device files
  • Track and audit all docx files processed by applications using Mammoth library in production environments

How to Mitigate CVE-2025-11849

Immediate Actions Required

  • Update Mammoth library to version 1.11.0 or later across all affected platforms (JavaScript, Python, .NET, Java)
  • Review applications for any explicit externalFileAccess: true configurations and remove unless absolutely necessary
  • Audit recently processed docx files for potential exploitation attempts
  • Implement additional file validation before processing untrusted documents

Patch Information

The vulnerability has been addressed in Mammoth version 1.11.0, which disables external file access by default. The fix is available for all affected language implementations:

  • JavaScript: Update via npm to version 1.11.0 or later
  • Python: Update via pip to version 1.11.0 or later
  • .NET: Update via NuGet to version 1.11.0 or later
  • Java: Update org.zwobble.mammoth:mammoth to version 1.11.0 or later

For detailed vulnerability information by platform, see the Snyk JavaScript Vulnerability, Snyk Python Vulnerability, Snyk .NET Vulnerability, and Snyk Java Vulnerability advisories.

Workarounds

  • If immediate upgrade is not possible, explicitly set externalFileAccess: false in the Mammoth options configuration
  • Run document conversion processes in sandboxed environments with restricted file system access
  • Implement input validation to reject docx files containing r:link attributes before processing
  • Use containerization or chroot to limit accessible file paths for conversion processes
bash
# Example: Running conversion in a restricted container
docker run --read-only \
  --security-opt=no-new-privileges \
  --tmpfs /tmp:noexec,nosuid,nodev \
  -v /app/uploads:/uploads:ro \
  mammoth-converter:latest

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMammoth

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Gist Example

  • GitHub Commit Note

  • Snyk .NET Vulnerability

  • Snyk Java Vulnerability

  • Snyk JavaScript Vulnerability

  • Snyk Python Vulnerability
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English