{"id":"UBUNTU-CVE-2026-61632","details":"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.","modified":"2026-08-13T00:10:36Z","published":"2026-08-06T22:18:00Z","upstream":["CVE-2026-61632"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-61632"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-61632"},{"type":"REPORT","url":"https://github.com/facelessuser/pymdown-extensions/releases/tag/11.0"},{"type":"REPORT","url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2"}],"affected":[{"package":{"name":"python-markdown","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1-1","2.3.1-2","2.4-1","2.4-1ubuntu0.14.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4-1ubuntu0.14.04.1","binary_name":"python-markdown"},{"binary_version":"2.4-1ubuntu0.14.04.1","binary_name":"python3-markdown"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-7","1.0.1-8"],"ecosystem_specific":{"binaries":[{"binary_name":"markdown","binary_version":"1.0.1-8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.2-1","2.6.3-1","2.6.4-1","2.6.5-1","2.6.5-2","2.6.6-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-markdown","binary_version":"2.6.6-1"},{"binary_name":"python3-markdown","binary_version":"2.6.6-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-9","1.0.1-10"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.1-10","binary_name":"markdown"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.9-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.9-1","binary_name":"python-markdown"},{"binary_name":"python3-markdown","binary_version":"2.6.9-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.1-2","3.1.1-2build1","3.1.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python-markdown","binary_version":"3.1.1-3"},{"binary_name":"python3-markdown","binary_version":"3.1.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-10"],"ecosystem_specific":{"binaries":[{"binary_name":"markdown","binary_version":"1.0.1-10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-10.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.1-10.1","binary_name":"markdown"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.4-1","3.3.6-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.3.6-1","binary_name":"python3-markdown"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-12"],"ecosystem_specific":{"binaries":[{"binary_name":"markdown","binary_version":"1.0.1-12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.4-1","3.5.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-markdown","binary_version":"3.5.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"markdown","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/markdown?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-14"],"ecosystem_specific":{"binaries":[{"binary_name":"markdown","binary_version":"1.0.1-14"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}},{"package":{"name":"python-markdown","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-markdown?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.8.2-2","3.10-1","3.10-2","3.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.10.2-1","binary_name":"python3-markdown"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61632.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}