{"answers":{"affected":"9 open source packages ship an affected version, including mammoth, org.zwobble.mammoth:mammoth and Mammoth.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11849 exists.","fix":"Upgrade mammoth to 1.11.0 or later.","what":"CVE-2025-11849 is a medium-severity path traversal vulnerability in Mammoth, published on 17 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-11849 and fix it if it is affected.\n\nWhat it is: CVE-2025-11849 is a medium-severity path traversal vulnerability in Mammoth, published on 17 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11849 exists.\n\nAffected packages and fixed versions:\n- mammoth (PyPI): affected from 0.3.25; fixed in 1.11.0\n- mammoth (PyPI): affected from 0.3.25; fixed in 1.11.0\n- mammoth (PyPI): affected from 0.3.25; fixed in 1.11.0\n- mammoth (npm): affected from 0.3.25; fixed in 1.11.0\n- mammoth (npm): affected from 0.3.25; fixed in 1.11.0\n- org.zwobble.mammoth:mammoth (Maven): affected all versions; fixed in 1.11.0\n- org.zwobble.mammoth:mammoth (Maven): affected all versions; fixed in 1.11.0\n- Mammoth (NuGet): affected all versions; fixed in 1.11.0\n- Mammoth (NuGet): affected all versions; fixed in 1.11.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-11849/ (Markdown: https://insights.sbomify.com/CVE-2025-11849/index.md)","id":"CVE-2025-11849","markdown":"https://insights.sbomify.com/CVE-2025-11849/index.md","name":"CVE-2025-11849","record":{"aliases":["GHSA-rmjr-87wv-gf87","PYSEC-2026-1603"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Document conversion library","requires_auth":"none","summary":"An attacker can read arbitrary files or cause denial of service by crafting a malicious docx file with external image links processed by the Mammoth library.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":6.4,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Maven","NuGet","PyPI","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Mammoth is vulnerable to Directory Traversal","id":"CVE-2025-11849","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":9,"n_references":6,"next":{"headline":"Auth bypass in Token Exchange Grant Type For OAuth","id":"CVE-2025-11850"},"packages":[{"ecosystem":"Maven","fixed":["1.11.0"],"introduced":["0"],"last_affected":[],"package":"org.zwobble.mammoth:mammoth","purl":null,"source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"Maven","fixed":["1.11.0"],"introduced":["0"],"last_affected":[],"package":"org.zwobble.mammoth:mammoth","purl":"pkg:maven/org.zwobble.mammoth/mammoth","source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"NuGet","fixed":["1.11.0"],"introduced":["0"],"last_affected":[],"package":"Mammoth","purl":null,"source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"NuGet","fixed":["1.11.0"],"introduced":["0"],"last_affected":[],"package":"Mammoth","purl":"pkg:nuget/Mammoth","source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"PyPI","fixed":["1.11.0"],"introduced":["0.3.25"],"last_affected":[],"package":"mammoth","purl":null,"source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"PyPI","fixed":["1.11.0"],"introduced":["0.3.25"],"last_affected":[],"package":"mammoth","purl":"pkg:pypi/mammoth","source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"PyPI","fixed":["1.11.0"],"introduced":["0.3.25"],"last_affected":[],"package":"mammoth","purl":"pkg:pypi/mammoth","source":"PYSEC-2026-1603"},{"ecosystem":"npm","fixed":["1.11.0"],"introduced":["0.3.25"],"last_affected":[],"package":"mammoth","purl":null,"source":"GHSA-rmjr-87wv-gf87"},{"ecosystem":"npm","fixed":["1.11.0"],"introduced":["0.3.25"],"last_affected":[],"package":"mammoth","purl":"pkg:npm/mammoth","source":"GHSA-rmjr-87wv-gf87"}],"prev":{"headline":"Null dereference in VMG3625-T50B firmware","id":"CVE-2025-11848"},"products":["Mammoth","mammoth","org.zwobble.mammoth:mammoth"],"published":"2025-10-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-17","vendors":["n/a"]},"summary":"An attacker can read arbitrary files or cause denial of service by crafting a malicious docx file with external image links processed by the Mammoth library.","url":"https://insights.sbomify.com/CVE-2025-11849/"}