{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-61632","id":"CVE-2026-61632","title":"PyMdown Extensions: Path traversal in the b64 extension lets <img src> read files outside base_path","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 pat","descriptionLong":"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.","published":"2026-08-06T20:59:20.177Z","updated":"2026-10-28T02:30:27.091584744Z","reserved":"2026-07-10T17:38:57.111Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["facelessuser pymdown-extensions"],"affectedProducts":[{"vendor":"facelessuser","product":"pymdown-extensions","defaultStatus":null,"versions":[{"version":"< 11.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":["<11.0.0"],"fixed":["11.0.0"],"advisory":"GHSA-9xwg-3r6f-jcx2"}],"cwes":["CWE-22"],"aliases":["GHSA-9xwg-3r6f-jcx2","PYSEC-2026-3609"],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/facelessuser/pymdown-extensions/releases/tag/11.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61632.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61632","tags":["advisory"]},{"url":"https://github.com/facelessuser/pymdown-extensions/commit/edce35586d11a1ef78bb187bc60497fe6dbf3b64","tags":["web"]},{"url":"https://github.com/facelessuser/pymdown-extensions","tags":["package"]},{"url":"https://pypi.org/project/pymdown-extensions","tags":["package"]},{"url":"https://github.com/advisories/GHSA-9xwg-3r6f-jcx2","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00418,"epssPercentile":0.36837,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-61632","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61632","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-61632","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9xwg-3r6f-jcx2","ok":true,"note":"GHSA-9xwg-3r6f-jcx2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-61632","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}