{"cve":"CVE-2026-61632","nvd":{"published":"2026-08-06T22:18:11.410","modified":"2026-10-24T16:10:00.153","status":"Awaiting Analysis","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 <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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/facelessuser/pymdown-extensions/releases/tag/11.0","https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2","https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-61632","score":0.00403,"percentile":0.34285,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9xwg-3r6f-jcx2","url":"https://osv.dev/vulnerability/GHSA-9xwg-3r6f-jcx2","summary":"PyMdown Extensions: Path traversal in the b64 extension lets <img src> read files outside base_path","modified":"2026-09-10T03:51:11.365684709Z","packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":["<11.0.0"],"fixed":["11.0.0"]}]},{"id":"PYSEC-2026-3609","url":"https://osv.dev/vulnerability/PYSEC-2026-3609","summary":"PyMdown Extensions: Path traversal in the b64 extension lets <img src> read files outside base_path","modified":"2026-08-04T14:30:19.278240076Z","packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":["<11.0.0"],"fixed":["11.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}