{"id":"CVE-2025-11849","revision":"c3e2a4be3e3a406496151d8b9ce71cb8","records":[{"revision":"c3e2a4be3e3a406496151d8b9ce71cb8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-11849","aliases":[],"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; versions of the package org.zwobble.mammoth:mammoth before 1.11.0 a…","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.","state":0,"publishedAt":"2025-10-17T05:00:06.278+00:00","modifiedAt":"2025-10-17T14:24:39.437+00:00","affected":[{"ecosystem":"Vendor product","name":"mammoth","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"mammoth\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0.3.25\",\n                            \"lessThan\": \"1.11.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"vendor\": \"n/a\"\n                }"},{"ecosystem":"Vendor product","name":"mammoth","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"mammoth\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0.3.25\",\n                            \"lessThan\": \"1.11.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"vendor\": \"n/a\"\n                }"},{"ecosystem":"Vendor product","name":"Mammoth","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Mammoth\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.11.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"vendor\": \"n/a\"\n                }"},{"ecosystem":"Vendor product","name":"org.zwobble.mammoth:mammoth","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"org.zwobble.mammoth:mammoth\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.11.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"vendor\": \"n/a\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H/E:P","score":9.3,"severity":"CRITICAL"},{"system":"CVSS 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","score":6.4,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-11849","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-11849","identifiers":["CVE-2025-11849"]},"retained":false,"historicalAffected":[]}],"coverage":[]}