CVE-2025-11849
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-11849 affects the Mammoth library (versions 0.3.25 to 1.11.0), which is used for converting Word documents to HTML. The vulnerability was discovered by Audun Wigum Arbo and was disclosed on October 14, 2025. The issue affects multiple implementations of Mammoth across different platforms including JavaScript, Python, Java, and .NET (Snyk JS, Snyk Python, Snyk Java, Snyk DotNet).

Technical details

The vulnerability is a Directory Traversal issue (CWE-22) that occurs due to insufficient path and file type validation when processing docx files containing images with external links (r:link attribute instead of embedded r:embed). When processing such files, the library resolves the URI to a file path, reads the content, and includes it as a base64-encoded data URI in the HTML output. The vulnerability has received a CVSS v3.1 score of 9.3 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H (GitHub Gist).

Impact

The vulnerability has two primary impacts: 1) Information Disclosure - attackers can read arbitrary files accessible to the process running the Mammoth library, potentially exposing sensitive system files like /etc/passwd or configuration files, and 2) Denial of Service - attackers can cause excessive resource consumption by crafting docx files that link to special device files such as /dev/random or /dev/zero, potentially causing the process to hang indefinitely or crash (GitHub Gist).

Mitigation and workarounds

The recommended mitigation is to upgrade to Mammoth version 1.11.0 or higher, which fixes the issue by disabling external file access by default. This fix has been implemented across all affected platforms including JavaScript, Python, Java, and .NET implementations (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62427HIGH8.7
  • JavaScriptJavaScript
  • @angular/ssr
NoYesOct 16, 2025
CVE-2025-53092MEDIUM6.5
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-11849MEDIUM6.4
  • JavaScriptJavaScript
  • Mammoth
NoYesOct 17, 2025
CVE-2025-25298MEDIUM6.3
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesOct 17, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management