{"id":"CVE-2026-61632","published":"2026-08-06T20:59:20Z","modified":"2026-08-07T17:09:02Z","title":"PyMdown Extensions: Path traversal in the b64 extension lets <img src> read files outside base_path","vendor":"facelessuser","product":"pymdown-extensions","tier":"tail","description":{"text":"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 <img src=\"...\"> 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00418,"percentile":0.36971,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facelessuser/pymdown-extensions/releases/tag/11.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":7.39},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"facelessuser","affectedVersions":[{"vendor":"facelessuser","product":"pymdown-extensions","versions":["< 11.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-07T14:59:34.928697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymdown-extensions","vulnerableRanges":["<11.0.0"],"patched":["11.0.0"],"from":["GHSA-9xwg-3r6f-jcx2","PYSEC-2026-3609"],"provenance":"source"}],"summary":{"text":"The b64 extension in pymdown-extensions, a set of extensions for Python-Markdown, fails to confine image paths referenced by <img src> to the configured base_path, so a src containing ../ sequences or an absolute path resolves outside that directory. An unauthenticated remote attacker who can supply Markdown rendered by an application with pymdownx.b64 enabled, requiring no user interaction, can read the contents of image-extension files (.png, .jpg, .jpeg, .gif, .svg) that the process can access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:40Z"},"euvd":{"id":"EUVD-2026-54149","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-32309","published":"2023-05-15","fixed":"10.0","kev":false},{"cve":"CVE-2025-68142","published":"2025-12-16","fixed":"10.16.1","kev":false},{"cve":"CVE-2026-46338","published":"2026-07-16","fixed":"10.21.3","kev":false},{"cve":"CVE-2026-61632","published":"2026-08-06","fixed":"11.0.0","kev":false},{"cve":"CVE-2026-67422","published":"2026-08-06","fixed":"11.0.1","kev":false,"link":{"from":"CVE-2026-61632","to":"CVE-2026-67422","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pymdown-extensions","fromFixed":"11.0.0","toFixed":"11.0.1","daysApart":0}]}}],"package":"PyPI:pymdown-extensions"}}