PyPI: mkdocs-include-markdown-plugin

CVE-2025-59940

Safety vulnerability ID: SFTY-20250929-70354

Safety legacy ID: pyup.io-79995

Affected versions of the mkdocs-include-markdown-plugin package are vulnerable to Improper Input Validation due to failing to escape internal substitution placeholder markers before processing user-supplied Markdown. In src/mkdocs_include_markdown_plugin/event.py, the get_file_content() pipeline builds and replaces placeholders using STX/ETX control characters, but (before v7.1.8) did not call escape_placeholders, allowing raw \u0002/\u0003 sequences in Markdown to be misinterpreted as plugin placeholders and collide with save_placeholder/replacement logic.

Created at: Oct 9, 2026Updated at: Oct 9, 2026

Overview

mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders

Advisory

Affected versions of the mkdocs-include-markdown-plugin package are vulnerable to Improper Input Validation due to failing to escape internal substitution placeholder markers before processing user-supplied Markdown. In src/mkdocs_include_markdown_plugin/event.py, the get_file_content() pipeline builds and replaces placeholders using STX/ETX control characters, but (before v7.1.8) did not call escape_placeholders, allowing raw \u0002/\u0003 sequences in Markdown to be misinterpreted as plugin placeholders and collide with save_placeholder/replacement logic.

Affected Package

Affecting mkdocs-include-markdown-plugin package, versions<7.1.8

Also affects

---

How to Fix

Upgrademkdocs-include-markdown-pluginto7.1.8or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more