Vulnerabilities in pkg:pypi/mkdocs-include-markdown-plugin

PACKAGE
Advisory Identifier: GHSA-v39m-5m9j-m9w9
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/mkdocs-include-markdown-plugin

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-59940
GHSA Identifier GHSA-v39m-5m9j-m9w9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Mkdocs include markdown plugin
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (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.

mkdocs-include-markdown-plugin fixed: 7.1.8
pip install mkdocs-include-markdown-plugin>=7.1.8
Verify Direct and Transitive Dependencies

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

### Impact CWE-20: Improper Input Validation Low impact ### Patches Patched in v7.1.8 (commit https://github.com/mondeja/mkdocs-include-markdown-plugin/commit/7466d67aa0de8ffbc427204ad2475fed07678915) ### Workarounds No

CVE-2025-59940 Affected Mkdocs include markdown plugin Versions

1 component(s)
Fixed Versions:
7.1.8
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?
CVE-2025-59940 is a security vulnerability in Mkdocs include markdown plugin involving mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders under CWE-20: Improper Input Validation.
Which Mkdocs include markdown plugin versions are affected?
Affected versions include releases prior to 7.1.8 across affected packages: mkdocs-include-markdown-plugin.
What version fixes CVE-2025-59940?
Upgrading to 7.1.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mkdocs-include-markdown-plugin affected?
Yes, mkdocs-include-markdown-plugin is affected in releases prior to 7.1.8. Upgrade your dependency to 7.1.8 or later.
What is the CVSS score of CVE-2025-59940?
CVE-2025-59940 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2025-59940?
CVE-2025-59940 is classified under CWE-20: Improper Input Validation (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.).
How can I check PyPI dependencies for CVE-2025-59940?
Run the dependency tree command: 'pip show mkdocs-include-markdown-plugin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}