GHSA-xvg9-69gf-fjrf: XSS

Published Sep 3, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
pip/mkdocs-material>=7.2.0<9.7.7
9.7.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/mkdocs-material to a version that resolves this vulnerability.

    Fixed in 9.7.7
  2. Upgrade

    Upgrade Material for MkDocs to a version that resolves this vulnerability.

    Fixed in 9.7.7
  3. Configuration

    Disable the optional search.suggest feature on the documentation site if you cannot upgrade past 9.7.6.

    Material for MkDocs search.suggest search.suggest (optional feature) = disabled

Event History

Sep 3, 2026
Advisory Published
via GitHub·07:52 PM
Data Sourced
via GitHub·07:52 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which sites are exposed to this issue?

Sites using Material for MkDocs versions 7.2.0 through 9.7.6 are affected only when the optional search.suggest feature is enabled. The issue affects the documentation site's own browser origin.

2

What must an attacker do to exploit it?

An attacker must craft a URL containing a malicious q parameter and cause a user to interact with it. No attacker authentication or special privileges are required.

3

What should we do if an immediate upgrade is not possible?

Disable the search.suggest feature as a workaround. Upgrade Material for MkDocs to version 9.7.7 or later when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203