CVE-2025-11849
published medium CVSS 4.0 · 6.4mammoth vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | mammoth0.3.25 to < 1.11.0 | Affected | Not stated | snyk |
| n/a | — | mammoth0.3.25 to < 1.11.0 | Affected | Not stated | snyk |
| n/a | — | Mammoth0 to < 1.11.0 | Affected | Not stated | snyk |
| n/a | — | org.zwobble.mammoth:mammoth0 to < 1.11.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.3 | critical | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H/E:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | mammoth | 0.3.25 to < 1.11.0 (affected · semver) | snyk · cna |
| n/a | mammoth | 0.3.25 to < 1.11.0 (affected · semver) | snyk · cna |
| n/a | Mammoth | 0 to < 1.11.0 (affected · semver) | snyk · cna |
| n/a | org.zwobble.mammoth:mammoth | 0 to < 1.11.0 (affected · semver) | snyk · cna |
Weaknesses
2- CWE-22 Directory Traversal
- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
6- https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10
- https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820
- https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968
- https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969
- https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470
- https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967
Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ffd492094cb0284e5a49f6ed83a53a953dad402875f3db622204fe2d60ab5d06
- Ingested
- 23 Sep 2026, 08:36:37 UTC
- Source record
- Official CVE record