Advisory

PYSEC-2026-3864

Also known as: CVE-2026-73295, GHSA-xvg9-69gf-fjrf

Summary

Material for MkDocs: DOM XSS in search suggestions via query parameter

Details

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.

Severity

Medium Basis: CVSS v3 score 5.4, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Dates

Published
2026-09-10 09:44 UTC
Modified
2026-09-10 12:15 UTC

Affected packages and fixes

mkdocs-material

PyPI · All systems

Affected

  • introduced 7.2.0, fixed 9.7.7 (ecosystem)

Fixed versions

9.7.7

Fix

  • Fixed version 9.7.7
    pip install --upgrade mkdocs-material==9.7.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences