CVE-2026-46338
Full vulnerability record from the local CVENow database.
Description
PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in SnippetPreprocessor.get_snippet_path() in pymdownx/snippets.py when `restrict_base_path: True`, allowing markdown snippet directives to read files from sibling paths that share the same base_path prefix, such as docs and docs_internal. This is a regression of CVE-2023-32309. This issue is fixed in version 10.21.3.
Severity
MEDIUM
CVSS score
4.3
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-07-16 19:16:45.733000
Last modified
2026-10-24 20:10:00.137000
View original CVE JSON
{
"id": "CVE-2026-46338",
"sourceIdentifier": "[email protected]",
"published": "2026-07-16T19:16:45.733",
"lastModified": "2026-10-24T20:10:00.137",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in SnippetPreprocessor.get_snippet_path() in pymdownx/snippets.py when `restrict_base_path: True`, allowing markdown snippet directives to read files from sibling paths that share the same base_path prefix, such as docs and docs_internal. This is a regression of CVE-2023-32309. This issue is fixed in version 10.21.3."
},
{
"lang": "es",
"value": "PyMdown Extensions es un conjunto de extensiones para el proyecto markdown Python-Markdown. Desde la versión 10.0.1 hasta la 10.21.3, pymdownx.snippets utiliza una comprobación de contención de prefijo de cadena en SnippetPreprocessor.get_snippet_path() en pymdownx/snippets.py cuando ’restrict_base_path: True’, permitiendo que las directivas de fragmento de markdown lean archivos de rutas hermanas que comparten el mismo prefijo base_path, como docs y docs_internal. Esto es una regresión de CVE-2023-32309. Este problema está solucionado en la versión 10.21.3."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "facelessuser",
"product": "pymdown-extensions",
"versions": [
{
"version": ">= 10.0.1, < 10.21.3",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N",
"baseScore": 4.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 1.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-17T17:52:47.052382Z",
"id": "CVE-2026-46338",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-22"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:*",
"versionStartIncluding": "10.0.1",
"versionEndExcluding": "10.21.3",
"matchCriteriaId": "D48D6C57-3A70-49B2-A782-BF2B715641F8"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3",
"source": "[email protected]",
"tags": [
"Product",
"Release Notes"
]
},
{
"url": "https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h",
"source": "[email protected]",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
},
{
"url": "https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
}
]
}