Vulnerabilities in pkg:pypi/mkdocs-include-markdown-plugin
PACKAGECVE-2025-59940 is a MODERATE (CVSS 6.5) mkdocs-include-markdown-plugin susceptible to unvalidated input vulnerability (CWE-20: Improper Input Validation) affecting Mkdocs include markdown plugin libraries in the PyPI ecosystem. The issue involves mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders. Remediation is available by upgrading affected packages to version 7.1.8.
pkg:pypi/mkdocs-include-markdown-plugin
Vulnerability advisories affecting package pkg:pypi/mkdocs-include-markdown-plugin. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v39m-5m9j-m9w9 | CVE-2025-59940 | MODERATE | mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders |
CVE-2025-59940 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2025-59940
To remediate this vulnerability, upgrade all affected Mkdocs include markdown plugin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mkdocs-include-markdown-plugin>=7.1.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mkdocs-include-markdown-plugin
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-59940, inspect your installed packages using pip:
pip show mkdocs-include-markdown-plugin
Analyze the terminal output to locate any version of Mkdocs include markdown plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.1.8), your application is affected.
Note: The pip show mkdocs-include-markdown-plugin command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Mkdocs include markdown plugin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59940 Affected Mkdocs include markdown plugin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mkdocs-include-markdown-plugin
|
PyPI |
< 7.1.8
|
7.1.8
|
References
Frequently Asked Questions
What is CVE-2025-59940?
Which Mkdocs include markdown plugin versions are affected?
What version fixes CVE-2025-59940?
Is mkdocs-include-markdown-plugin affected?
What is the CVSS score of CVE-2025-59940?
What CWE is associated with CVE-2025-59940?
How can I check PyPI dependencies for CVE-2025-59940?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v39m-5m9j-m9w9",
"modified" : "2025-09-30T15:15:20Z",
"published" : "2025-09-29T16:29:07Z",
"aliases" : [ "CVE-2025-59940" ],
"summary" : "mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders ",
"details" : "### Impact\nCWE-20: Improper Input Validation\nLow impact\n\n### Patches\nPatched in v7.1.8 (commit https://github.com/mondeja/mkdocs-include-markdown-plugin/commit/7466d67aa0de8ffbc427204ad2475fed07678915)\n\n### Workarounds\nNo",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mkdocs-include-markdown-plugin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.1.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mondeja/mkdocs-include-markdown-plugin/security/advisories/GHSA-v39m-5m9j-m9w9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59940"
}, {
"type" : "WEB",
"url" : "https://github.com/mondeja/mkdocs-include-markdown-plugin/issues/274"
}, {
"type" : "WEB",
"url" : "https://github.com/mondeja/mkdocs-include-markdown-plugin/pull/277"
}, {
"type" : "WEB",
"url" : "https://github.com/mondeja/mkdocs-include-markdown-plugin/commit/7466d67aa0de8ffbc427204ad2475fed07678915"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mondeja/mkdocs-include-markdown-plugin"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-29T16:29:07Z",
"nvd_published_at" : "2025-09-29T23:15:31Z"
}
}