CVE-2026-61632

Source
https://cve.org/CVERecord?id=CVE-2026-61632
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61632.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-61632
Aliases
Downstream
Published
2026-08-06T20:59:20.177Z
Modified
2026-08-08T03:32:29.711001071Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
PyMdown Extensions: Path traversal in the b64 extension lets <img src> read files outside base_path
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 <img src="..."> by joining the src onto the configured basepath with os.path.normpath and opening the result directly, without verifying that the resolved path stays inside basepath. 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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61632.json",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/facelessuser/pymdown-extensions

Affected ranges

Type
GIT
Repo
https://github.com/facelessuser/pymdown-extensions
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "11.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.5.0
1.6.0
1.6.1
1.7.0
1.8.0
10.*
10.0
10.0.1
10.1.0
10.10
10.10.1
10.10.2
10.11
10.11.1
10.11.2
10.12
10.13
10.14
10.14.1
10.14.2
10.14.3
10.15
10.16
10.16.1
10.17
10.17.1
10.17.2
10.18
10.19
10.19.1
10.2
10.2.1
10.20
10.21
10.21.1
10.21.2
10.21.3
10.3
10.3.1
10.4
10.5
10.6
10.7
10.7.1
10.8
10.8.1
10.9
2.*
2.0
3.*
3.0
3.1
3.2
3.2.1
3.3.0
3.4.0
3.5.0
4.*
4.0.0
4.1.0
4.10.0
4.10.1
4.10.2
4.11.0
4.12.0
4.2.0
4.3.0
4.4.0
4.5.0
4.5.1
4.6.0
4.7.0
4.8.0
4.9.0
4.9.1
4.9.2
5.*
5.0.0
6.*
6.0.0
6.1.0
6.2.0
6.2.1
6.3.0
7.*
7.0.0
7.0.0b2
7.0.0rc1
7.0.0rc2
7.1
8.*
8.0
8.0.1
8.1
8.1.1
8.2
9.*
9.0
9.1
9.10
9.10b2
9.10b3
9.10b4
9.10b5
9.11
9.2
9.3
9.4
9.5
9.6
9.7
9.8
9.9
9.9.1
9.9.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61632.json"