# CVE-2025-59940: mkdocs-include-markdown-plugin susceptible to unvalidated input colliding with substitution placeholders

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2025-09-29T16:29:07.000Z
- Modified: 2026-10-09T09:10:00.213Z
- Also known as: GHSA-v39m-5m9j-m9w9, PYSEC-2026-1632
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

mkdocs-include-markdown-plugin is an Mkdocs Markdown includer plugin. In versions 7.1.7 and below, there is a vulnerability where unvalidated input can collide with substitution placeholders. This issue is fixed in version 7.1.8.

(As written by CVE List.)

## Affected

- mondeja mkdocs-include-markdown-plugin: < 7.1.8
- mkdocs-include-markdown-plugin (PyPI): before 7.1.8

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/mondeja/mkdocs-include-markdown-plugin/security/advisories/GHSA-v39m-5m9j-m9w9> (web)
- <https://github.com/mondeja/mkdocs-include-markdown-plugin/issues/274> (web)
- <https://github.com/mondeja/mkdocs-include-markdown-plugin/pull/277> (web)
- <https://github.com/mondeja/mkdocs-include-markdown-plugin/commit/7466d67aa0de8ffbc427204ad2475fed07678915> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59940> (advisory)
- <https://github.com/mondeja/mkdocs-include-markdown-plugin> (package)
- <https://pypi.org/project/mkdocs-include-markdown-plugin> (package)
- <https://github.com/advisories/GHSA-v39m-5m9j-m9w9> (advisory)

## Sources

- CVE List: [CVE-2025-59940](https://www.cve.org/CVERecord?id=CVE-2025-59940), CVE Terms of Use, modified 2025-09-30
- GitHub Advisory Database: [GHSA-v39m-5m9j-m9w9](https://github.com/advisories/GHSA-v39m-5m9j-m9w9), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-59940](https://nvd.nist.gov/vuln/detail/CVE-2025-59940), Public domain, modified 2026-10-09
- PyPA Advisory Database: [PYSEC-2026-1632](https://osv.dev/vulnerability/PYSEC-2026-1632), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-59940 · Whole record: https://cve.day/CVE-2025-59940.json · Rebuilt by cve.day 2026-11-25T22:59:05.334Z
