{"answers":{"affected":"3 open source packages ship an affected version, including babeldoc and BabelDOC.","exploited":"There is no known exploitation of CVE-2026-54071 in the wild and no public exploit code.","fix":"Upgrade babeldoc to 0.6.3 or later.","what":"CVE-2026-54071 is a high-severity unsafe deserialization vulnerability in funstory-ai BabelDOC, published on 21 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54071 and fix it if it is affected.\n\nWhat it is: CVE-2026-54071 is a high-severity unsafe deserialization vulnerability in funstory-ai BabelDOC, published on 21 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-54071 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- babeldoc (PyPI): affected all versions; fixed in 0.6.3\n- babeldoc (PyPI): affected all versions; fixed in 0.6.3\n- BabelDOC (PyPI): affected all versions; fixed in 0.6.3\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-2026-54071/ (Markdown: https://insights.sbomify.com/CVE-2026-54071/index.md)","id":"CVE-2026-54071","markdown":"https://insights.sbomify.com/CVE-2026-54071/index.md","name":"CVE-2026-54071","record":{"aliases":["GHSA-m8gf-v64p-gfmg","PYSEC-2026-2389"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python document translation library","requires_auth":"none","summary":"Attackers can execute arbitrary code by crafting malicious PDFs that trigger unsafe pickle deserialization in BabelDOC's PDF parser.","user_interaction":"required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"BabelDOC is a document translation tool. Prior to 0.6.3, BabelDOC's vendored PDF parser in babeldoc/pdfminer/cmapdb.py deserializes untrusted pickle data when CMapDB._load_data() loads CMap files. PDF-controlled Encoding or CMapName values and embedded PostScript usecmap operators can reach this sink after path separators are decoded, while _normalize_cmap_name() removes only a leading slash. Absolute paths or traversal sequences can escape the trusted CMap directories through os.path.join(), select an attacker-writable .pickle.gz file, and cause pickle.loads() to execute arbitrary Python code with the privileges of the BabelDOC process. This issue is fixed in version 0.6.3.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py","id":"CVE-2026-54071","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Authorizer: Unvalidated redirect_uri in /authorize leaks OAuth2 tokens to attacker-controlled URL","id":"CVE-2026-54072"},"packages":[{"ecosystem":"PyPI","fixed":["0.6.3"],"introduced":["0"],"last_affected":[],"package":"BabelDOC","purl":null,"source":"GHSA-m8gf-v64p-gfmg"},{"ecosystem":"PyPI","fixed":["0.6.3"],"introduced":["0"],"last_affected":[],"package":"babeldoc","purl":"pkg:pypi/babeldoc","source":"GHSA-m8gf-v64p-gfmg"},{"ecosystem":"PyPI","fixed":["0.6.3"],"introduced":["0"],"last_affected":[],"package":"babeldoc","purl":"pkg:pypi/babeldoc","source":"PYSEC-2026-2389"}],"prev":{"headline":"SiYuan: Stored XSS in Bazaar marketplace via package README event handlers","id":"CVE-2026-54070"},"products":["BabelDOC"],"published":"2026-08-21","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["funstory-ai"]},"summary":"Attackers can execute arbitrary code by crafting malicious PDFs that trigger unsafe pickle deserialization in BabelDOC's PDF parser.","url":"https://insights.sbomify.com/CVE-2026-54071/"}