CVE-2025-59940
Python vulnerability analysis and mitigation

Overview

mkdocs-include-markdown-plugin, a Markdown includer plugin for Mkdocs, contains a vulnerability in versions 7.1.7 and below where unvalidated input can collide with substitution placeholders. The vulnerability was discovered and disclosed in September 2025, identified as CVE-2025-59940 (GitHub Advisory).

Technical details

The vulnerability stems from improper input validation (CWE-20) where unvalidated input could collide with placeholder content. The issue occurs because the plugin fails to properly escape placeholder characters in input text, potentially allowing attackers to manipulate the content processing. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, indicating it is network accessible with low attack complexity and requires no privileges or user interaction (GitHub Advisory).

Impact

The vulnerability has a low to moderate impact on system integrity and availability. While it doesn't affect confidentiality, it could allow attackers to manipulate content processing through input that matches placeholder patterns (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 7.1.8 of mkdocs-include-markdown-plugin. The fix involves escaping placeholder characters in input with text.replace(STX, '\u0002').replace(ETX, '\u0003') to prevent raw STX and ETX matches. Users should upgrade to version 7.1.8 or later to address this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-7647HIGH7.3
  • PythonPython
  • llama-index-core
NoYesSep 27, 2025
CVE-2025-10951MEDIUM6.9
  • PythonPython
  • ml-logger
NoNoSep 25, 2025
CVE-2025-59940MEDIUM6.5
  • PythonPython
  • mkdocs-include-markdown-plugin
NoYesSep 29, 2025
CVE-2025-10952MEDIUM5.5
  • PythonPython
  • ml-logger
NoNoSep 25, 2025
CVE-2025-10950MEDIUM5.3
  • PythonPython
  • ml-logger
NoNoSep 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management