{"answers":{"affected":"3 open source packages ship an affected version, including pymdown-extensions.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61632 exists.","fix":"Upgrade pymdown-extensions to 11.0.0 or later.","what":"CVE-2026-61632 is a medium-severity path traversal vulnerability in facelessuser pymdown-extensions, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-61632 and fix it if it is affected.\n\nWhat it is: CVE-2026-61632 is a medium-severity path traversal vulnerability in facelessuser pymdown-extensions, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61632 exists.\n\nAffected packages and fixed versions:\n- pymdown-extensions (PyPI): affected all versions; fixed in 11.0.0\n- pymdown-extensions (PyPI): affected all versions; fixed in 11.0.0\n- pymdown-extensions (PyPI): affected all versions; fixed in 11.0.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-2026-61632/ (Markdown: https://insights.sbomify.com/CVE-2026-61632/index.md)","id":"CVE-2026-61632","markdown":"https://insights.sbomify.com/CVE-2026-61632/index.md","name":"CVE-2026-61632","record":{"aliases":["DEBIAN-CVE-2026-61632","ECHO-d088-1f41-49db","GHSA-9xwg-3r6f-jcx2","PYSEC-2026-3609","UBUNTU-CVE-2026-61632"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Python Markdown extension","requires_auth":"none","summary":"Attackers can read arbitrary image files outside the base directory by exploiting path traversal in the b64 extension of PyMdown Extensions.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. In versions up to and including 10.21.3, the b64 extension is vulnerable to a path traversal that discloses arbitrary files: it inlines images referenced by \u003cimg src=\"...\"\u003e by joining the src onto the configured base_path with os.path.normpath and opening the result directly, without verifying that the resolved path stays inside base_path. As a result, an src containing ../ sequences or an absolute path reads a file outside base_path as long as it has an allowed image extension (.png, .jpg, .jpeg, .gif, .svg), and the file's contents are then base64-encoded into the rendered output, disclosing them. An application that renders untrusted Markdown with pymdownx.b64 enabled can therefore leak the contents of image-extension files readable by the process to whoever controls the Markdown or views the output, a targeted file-read bounded by the extension check. This issue has been fixed in version 11.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PyMdown Extensions: Path traversal in the b64 extension lets \u003cimg src\u003e read files outside base_path","id":"CVE-2026-61632","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"NanoMQ: Infinite Loop in UNSUBSCRIBE Decoder Leading to Remote DoS","id":"CVE-2026-61633"},"packages":[{"ecosystem":"PyPI","fixed":["11.0.0"],"introduced":["0"],"last_affected":[],"package":"pymdown-extensions","purl":null,"source":"GHSA-9xwg-3r6f-jcx2"},{"ecosystem":"PyPI","fixed":["11.0.0"],"introduced":["0"],"last_affected":[],"package":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","source":"GHSA-9xwg-3r6f-jcx2"},{"ecosystem":"PyPI","fixed":["11.0.0"],"introduced":["0"],"last_affected":[],"package":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","source":"PYSEC-2026-3609"}],"prev":{"headline":"nginx ignition has TOTP Reuse During Validity Window","id":"CVE-2026-61630"},"products":["pymdown-extensions"],"published":"2026-08-06","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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-07","vendors":["facelessuser"]},"summary":"Attackers can read arbitrary image files outside the base directory by exploiting path traversal in the b64 extension of PyMdown Extensions.","url":"https://insights.sbomify.com/CVE-2026-61632/"}