Skip to content

CVE-2025-11849 Mammoth is vulnerable to Directory Traversal

MediumCVSS 6.4 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

Versions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth before 1.11.0; versions of the package org.zwobble.mammoth:mammoth before 1.11.0 are vulnerable to Directory Traversal due to the lack of path or file type validation when processing a docx file containing an image with an external link (r:link attribute instead of embedded r:embed). The library resolves the URI to a file path and after reading, the content is encoded as base64 and included in the HTML output as a data URI. An attacker can read arbitrary files on the system where the conversion is performed or cause an excessive resources consumption by crafting a docx file that links to special device files such as /dev/random or /dev/zero.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
npm mammoth(npm) >= 0.3.25, < 1.11.0 1.11.0 Fixed
nuget Mammoth(NuGet) < 1.11.0; = 0.0.1; = 0.0.2; = 1.3.1 +3 more 1.11.0 Fixed
org.zwobble.mammoth/mammoth(Maven) < 1.11.0; = 0.0.1; = 0.0.2; = 0.0.3 +11 more 1.11.0 Fixed
pypi mammoth(PyPI) = 0.3.25; = 0.3.26; = 0.3.27; = 0.3.29 +48 more 1.11.0 Fixed

Affected products

ProductAffected versionsFixed in
npm mammoth(npm) >= 0.3.25, < 1.11.0 1.11.0
org.zwobble.mammoth/mammoth(Maven) < 1.11.0 1.11.0
org.zwobble.mammoth/mammoth(Maven) = 0.0.1 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 0.0.2 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 0.0.3 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 0.0.4 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.10.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.3.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.3.1 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.4.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.4.1 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.4.2 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.5.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.7.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.8.0 No fix listed
org.zwobble.mammoth/mammoth(Maven) = 1.9.0 No fix listed
pypi mammoth(PyPI) >= 0.3.25, < 1.11.0 1.11.0
pypi mammoth(PyPI) = 0.3.25 No fix listed
pypi mammoth(PyPI) = 0.3.26 No fix listed
pypi mammoth(PyPI) = 0.3.27 No fix listed
pypi mammoth(PyPI) = 0.3.29 No fix listed
pypi mammoth(PyPI) = 0.3.30 No fix listed
pypi mammoth(PyPI) = 0.3.31 No fix listed
pypi mammoth(PyPI) = 1.0.0 No fix listed
pypi mammoth(PyPI) = 1.0.1 No fix listed
Show 50 more
ProductAffected versionsFixed in
pypi mammoth(PyPI) = 1.0.2 No fix listed
pypi mammoth(PyPI) = 1.0.3 No fix listed
pypi mammoth(PyPI) = 1.0.4 No fix listed
pypi mammoth(PyPI) = 1.1.0 No fix listed
pypi mammoth(PyPI) = 1.1.1 No fix listed
pypi mammoth(PyPI) = 1.10.0 No fix listed
pypi mammoth(PyPI) = 1.2.0 No fix listed
pypi mammoth(PyPI) = 1.2.1 No fix listed
pypi mammoth(PyPI) = 1.2.2 No fix listed
pypi mammoth(PyPI) = 1.3.0 No fix listed
pypi mammoth(PyPI) = 1.3.1 No fix listed
pypi mammoth(PyPI) = 1.3.2 No fix listed
pypi mammoth(PyPI) = 1.3.3 No fix listed
pypi mammoth(PyPI) = 1.3.4 No fix listed
pypi mammoth(PyPI) = 1.3.5 No fix listed
pypi mammoth(PyPI) = 1.4.0 No fix listed
pypi mammoth(PyPI) = 1.4.1 No fix listed
pypi mammoth(PyPI) = 1.4.10 No fix listed
pypi mammoth(PyPI) = 1.4.11 No fix listed
pypi mammoth(PyPI) = 1.4.12 No fix listed
pypi mammoth(PyPI) = 1.4.13 No fix listed
pypi mammoth(PyPI) = 1.4.14 No fix listed
pypi mammoth(PyPI) = 1.4.15 No fix listed
pypi mammoth(PyPI) = 1.4.16 No fix listed
pypi mammoth(PyPI) = 1.4.17 No fix listed
pypi mammoth(PyPI) = 1.4.18 No fix listed
pypi mammoth(PyPI) = 1.4.19 No fix listed
pypi mammoth(PyPI) = 1.4.2 No fix listed
pypi mammoth(PyPI) = 1.4.3 No fix listed
pypi mammoth(PyPI) = 1.4.4 No fix listed
pypi mammoth(PyPI) = 1.4.5 No fix listed
pypi mammoth(PyPI) = 1.4.6 No fix listed
pypi mammoth(PyPI) = 1.4.7 No fix listed
pypi mammoth(PyPI) = 1.4.8 No fix listed
pypi mammoth(PyPI) = 1.4.9 No fix listed
pypi mammoth(PyPI) = 1.5.0 No fix listed
pypi mammoth(PyPI) = 1.5.1 No fix listed
pypi mammoth(PyPI) = 1.6.0 No fix listed
pypi mammoth(PyPI) = 1.7.0 No fix listed
pypi mammoth(PyPI) = 1.7.1 No fix listed
pypi mammoth(PyPI) = 1.8.0 No fix listed
pypi mammoth(PyPI) = 1.9.0 No fix listed
pypi mammoth(PyPI) = 1.9.1 No fix listed
nuget Mammoth(NuGet) < 1.11.0 1.11.0
nuget Mammoth(NuGet) = 0.0.1 No fix listed
nuget Mammoth(NuGet) = 0.0.2 No fix listed
nuget Mammoth(NuGet) = 1.3.1 No fix listed
nuget Mammoth(NuGet) = 1.3.2 No fix listed
nuget Mammoth(NuGet) = 1.4.0 No fix listed
nuget Mammoth(NuGet) = 1.8.0 No fix listed

References