{"id":"CVE-2025-11849","aliases":["CVE-2025-11849","GHSA-rmjr-87wv-gf87","PYSEC-2026-1603"],"related":[],"kind":"vulnerability","state":"published","title":"Mammoth is vulnerable to Directory Traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Versiones del paquete mammoth desde 0.3.25 y anteriores a 1.11.0; versiones del paquete mammoth desde 0.3.25 y anteriores a 1.11.0; versiones del paquete mammoth anteriores a 1.11.0; versiones del paquete org.zwobble.mammoth:mammoth anteriores a 1.11.0 son vulnerables a salto de directorio debido a la falta de validación de ruta o tipo de archivo al procesar un archivo docx que contiene una imagen con un enlace externo (atributo r:link en lugar de r:embed incrustado). La biblioteca resuelve la URI a una ruta de archivo y después de la lectura, el contenido se codifica como base64 y se incluye en la salida HTML como una URI de datos. Un atacante puede leer archivos arbitrarios en el sistema donde se realiza la conversión o causar un consumo excesivo de recursos al crear un archivo docx que enlaza a archivos de dispositivo especiales como /dev/random o /dev/zero.","source":"nvd"}],"published":"2025-10-17T05:00:06.278Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"snyk","scheme":"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,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"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,"rating":"MEDIUM"},{"scorer":"snyk","scheme":"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,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","score":9.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","score":9.3,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0.3.25","fixed":"1.11.0","status":"affected"}],"product":"mammoth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.25","fixed":"1.11.0","status":"affected"}],"product":"mammoth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"1.11.0","status":"affected"}],"product":"Mammoth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"1.11.0","status":"affected"}],"product":"org.zwobble.mammoth:mammoth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.25","status":"affected","fixed":"1.11.0"}],"ecosystem":"npm","package":"mammoth","purl":"pkg:npm/mammoth","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.0"}],"ecosystem":"Maven","package":"org.zwobble.mammoth:mammoth","purl":"pkg:maven/org.zwobble.mammoth/mammoth","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.3.25","status":"affected","fixed":"1.11.0"}],"ecosystem":"PyPI","package":"mammoth","purl":"pkg:pypi/mammoth","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.0"}],"ecosystem":"NuGet","package":"Mammoth","purl":"pkg:nuget/Mammoth","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.3.25","status":"affected","fixed":"1.11.0"}],"ecosystem":"PyPI","package":"mammoth","purl":"pkg:pypi/mammoth","source":"pysec"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11849","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mwilliamson/java-mammoth","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/mammoth","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rmjr-87wv-gf87","tags":["advisory"],"sources":["pysec"]}],"credits":["Audun Wigum Arbo"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-10-17T14:24:36.088Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-11849","url":"https://www.cve.org/CVERecord?id=CVE-2025-11849","licence":"CVE Terms of Use","modified":"2025-10-17T14:24:39.437Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rmjr-87wv-gf87","url":"https://github.com/advisories/GHSA-rmjr-87wv-gf87","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:05.627Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-11849","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11849","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1603","url":"https://osv.dev/vulnerability/PYSEC-2026-1603","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:15.308Z"}],"updatedAt":"2026-11-25T22:59:06.523Z","epss":{"score":0.01126,"percentile":0.67241,"date":"2026-12-01T12:00:22.000Z"}}