{"id":"CVE-2025-11849","state":"PUBLISHED","title":"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; version","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.","publishedAt":"2025-10-17T05:00:06.278Z","updatedAt":"2025-10-17T14:24:39.437Z","severity":{"score":6.4,"label":"Medium","version":"4.0","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","source":"snyk"},"assigner":"snyk","products":["n/a mammoth","n/a Mammoth","n/a org.zwobble.mammoth:mammoth"],"affected":[{"vendor":"n/a","product":"mammoth","versions":[{"version":"0.3.25","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"mammoth","versions":[{"version":"0.3.25","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"Mammoth","versions":[{"version":"0","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"org.zwobble.mammoth:mammoth","versions":[{"version":"0","status":"affected","lessThan":"1.11.0","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470","https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967","https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968","https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969","https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10","https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:08:31.050Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/11xxx/CVE-2025-11849.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-11849","state":"PUBLISHED","datePublished":"2025-10-17T05:00:06.278Z","dateUpdated":"2025-10-17T14:24:39.437Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2025-10-16T09:34:45.608Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"mammoth","versions":[{"version":"0.3.25","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"mammoth","versions":[{"version":"0.3.25","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"Mammoth","versions":[{"version":"0","status":"affected","lessThan":"1.11.0","versionType":"semver"}]},{"vendor":"n/a","product":"org.zwobble.mammoth:mammoth","versions":[{"version":"0","status":"affected","lessThan":"1.11.0","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470"},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967"},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969"},{"url":"https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10"},{"url":"https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","exploitCodeMaturity":"PROOF_OF_CONCEPT","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":9.3,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H/E:P"},"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","exploitMaturity":"PROOF_OF_CONCEPT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"NONE","subAvailabilityImpact":"HIGH","baseScore":6.4,"baseSeverity":"MEDIUM","vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"Directory Traversal","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2025-10-17T05:00:06.278Z"},"credits":[{"value":"Audun Wigum Arbo","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-10-17T14:24:36.088431Z","id":"CVE-2025-11849","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","type":"CWE","lang":"en","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-17T14:24:39.437Z"}}]}}}