{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-11849","id":"CVE-2025-11849","title":"Mammoth is vulnerable to Directory Traversal","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:li","descriptionLong":"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.","published":"2025-10-17T05:00:06.278Z","updated":"2026-10-28T02:30:27.669563662Z","reserved":"2025-10-16T09:34:45.608Z","status":"Deferred","rejected":false,"assigner":"snyk","metric":{"version":"4.0","score":6.4,"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","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":6.4,"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","rating":"medium","source":"snyk"},{"version":"4.0","score":5.4,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"snyk.io"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H/E:P","rating":"critical","source":"snyk"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","rating":"critical","source":"snyk.io"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","rating":"critical","source":"OSV"}],"rating":"medium","products":["mammoth","Mammoth","org.zwobble.mammoth:mammoth"],"affectedProducts":[{"vendor":"n/a","product":"mammoth","defaultStatus":null,"versions":[{"version":"0.3.25","lessThan":"1.11.0","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"n/a","product":"mammoth","defaultStatus":null,"versions":[{"version":"0.3.25","lessThan":"1.11.0","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"n/a","product":"Mammoth","defaultStatus":null,"versions":[{"version":"0","lessThan":"1.11.0","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"n/a","product":"org.zwobble.mammoth:mammoth","defaultStatus":null,"versions":[{"version":"0","lessThan":"1.11.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mammoth","purl":"pkg:npm/mammoth","ranges":[">=0.3.25 <1.11.0"],"fixed":["1.11.0"],"advisory":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"Maven","name":"org.zwobble.mammoth:mammoth","purl":"pkg:maven/org.zwobble.mammoth/mammoth","ranges":["<1.11.0"],"fixed":["1.11.0"],"advisory":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"PyPI","name":"mammoth","purl":"pkg:pypi/mammoth","ranges":[">=0.3.25 <1.11.0"],"fixed":["1.11.0"],"advisory":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"NuGet","name":"Mammoth","purl":"pkg:nuget/Mammoth","ranges":["<1.11.0"],"fixed":["1.11.0"],"advisory":"GHSA-rmjr-87wv-gf87"}],"cwes":["CWE-22"],"aliases":["GHSA-rmjr-87wv-gf87","PYSEC-2026-1603"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969","tags":["web"]},{"url":"https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10","tags":["exploit","web"]},{"url":"https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820","tags":["fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/11xxx/CVE-2025-11849.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11849","tags":["advisory"]},{"url":"https://github.com/mwilliamson/java-mammoth","tags":["package"]},{"url":"https://pypi.org/project/mammoth","tags":["package"]},{"url":"https://github.com/advisories/GHSA-rmjr-87wv-gf87","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.01126,"epssPercentile":0.67008,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-11849","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11849","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-11849","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rmjr-87wv-gf87","ok":true,"note":"GHSA-rmjr-87wv-gf87"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-11849","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}