# CVE-2025-11849: Mammoth is vulnerable to Directory Traversal

- Severity: Medium 6.4 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-17T05:00:06.278Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-rmjr-87wv-gf87, PYSEC-2026-1603
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- mammoth: from 0.3.25 before 1.11.0; before 1.11.0
- org.zwobble.mammoth:mammoth: before 1.11.0
- mammoth (npm): from 0.3.25 before 1.11.0
- org.zwobble.mammoth:mammoth (Maven): before 1.11.0
- mammoth (PyPI): from 0.3.25 before 1.11.0
- Mammoth (NuGet): before 1.11.0

## Every score

- snyk: CVSS:4.0 6.4 Medium `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`
- snyk: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H/E:P`
- GitHub: CVSS:3.1 9.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10> (exploit, web)
- <https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470> (web)
- <https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967> (web)
- <https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968> (web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969> (web)
- <https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-11849> (advisory)
- <https://github.com/mwilliamson/java-mammoth> (package)
- <https://pypi.org/project/mammoth> (package)
- <https://github.com/advisories/GHSA-rmjr-87wv-gf87> (advisory)

## Sources

- CVE List: [CVE-2025-11849](https://www.cve.org/CVERecord?id=CVE-2025-11849), CVE Terms of Use, modified 2025-10-17
- GitHub Advisory Database: [GHSA-rmjr-87wv-gf87](https://github.com/advisories/GHSA-rmjr-87wv-gf87), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-11849](https://nvd.nist.gov/vuln/detail/CVE-2025-11849), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1603](https://osv.dev/vulnerability/PYSEC-2026-1603), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-11849 · Whole record: https://cve.day/CVE-2025-11849.json · Rebuilt by cve.day 2026-11-25T22:59:06.523Z
