CVE-2026-73295: Material for MkDocs: DOM XSS in search suggestions via query parameter
Impact Material for MkDocs 7.2.0 through 9.7.6 contains a DOM-based cross-site scripting vulnerability in the optional search.suggest feature. A crafted q URL parameter could execute JavaScript in the documentation site's origin after user interaction. Patches The issue is fixed in Material for MkDocs 9.7.7. Users should upgrade to 9.7.7 or later.
Published Sep 3, 2026
Affected packages
mkdocs-material
- Ecosystem
- PyPI
- Affected
- >= 7.2.0, < 9.7.7
- Fixed in
- 9.7.7
- Check
pip show mkdocs-material
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Material for MkDocs 7.2.0 through 9.7.6 contains a DOM-based cross-site scripting vulnerability in the optional search.suggest feature. A crafted q URL parameter could execute JavaScript in the documentation site's origin after user interaction.
Patches
The issue is fixed in Material for MkDocs 9.7.7. Users should upgrade to 9.7.7 or later.
Workarounds
Sites unable to upgrade should disable the search.suggest feature.
Credited to p-.
References
- https://github.com/squidfunk/mkdocs-material/security/advisories/GHSA-xvg9-69gf-fjrf
- https://nvd.nist.gov/vuln/detail/CVE-2026-73295
- https://github.com/squidfunk/mkdocs-material/commit/52fb6be8aafe326419f34dc94d3211e7bbfbfb25
- https://github.com/squidfunk/mkdocs-material/releases/tag/9.7.7
- https://github.com/advisories/GHSA-xvg9-69gf-fjrf
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
