CVE-2026-73295

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

Published Aug 12, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Material for MkDocs is a powerful documentation framework built on top of MkDocs. From 7.2.0 until 9.7.7, the mountSearchSuggest function in src/templates/assets/javascripts/components/search/suggest/index.ts contains a DOM-based cross-site scripting vulnerability in the optional search.suggest feature that allows a crafted q URL parameter to execute JavaScript in a documentation site's origin after user interaction. This issue is fixed in version 9.7.7.

Analysis

AI-generated

Technical impact

The vulnerability is a DOM‑based cross‑site scripting flaw that arises when a user interacts with the optional search.suggest feature in MkDocs Material. A malicious actor can supply a crafted "q" query parameter that causes arbitrary inline JavaScript to be executed within the context of the documentation site's origin. This flaw enables an attacker to hijack user sessions, deface content, or exfiltrate data visible to site visitors. The weakness is of type CWE‑79.

Affected Systems

The issue affects MkDocs Material versions from 7.2.0 through 9.7.7 inclusive. The most common affected distribution is the Python package "squidfunk:mkdocs-material". Affected sites are those hosting documentation built with these versions, regardless of operating system or hosting platform.

Risk and Exploitability

The CVSS score of 5.4 places the vulnerability in the moderate severity range. Exploit likelihood is not quantified in EPSS, and the flaw is not listed in the CISA KEV catalog. The likely attack vector requires an attacker to host a maliciously crafted URL that includes the vulnerable "q" parameter and persuade a user to click or otherwise interact with the rendered page. Because the code runs once the user interacts with the interface, the vulnerability falls under a user‑initiated scenario rather than remote code upload or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MkDocs Material to version 9.7.7 or later, which removes the vulnerable code.
  • If an upgrade is delayed, disable the search.suggest feature by clearing the "search: suggest" setting in the MkDocs configuration to prevent the vulnerable code from loading.
  • Ensure that any search URLs containing a "q" parameter are served over HTTPS and implement strict access controls so that only trusted users can visit the documentation.

Generated by OpenCVE AI on August 13, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xvg9-69gf-fjrf Material for MkDocs: DOM XSS in search suggestions via query parameter
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Squidfunk
Squidfunk mkdocs-material
Vendors & Products Squidfunk
Squidfunk mkdocs-material
Type Values Removed Values Added
Description Material for MkDocs is a powerful documentation framework built on top of MkDocs. From 7.2.0 until 9.7.7, the mountSearchSuggest function in src/templates/assets/javascripts/components/search/suggest/index.ts contains a DOM-based cross-site scripting vulnerability in the optional search.suggest feature that allows a crafted q URL parameter to execute JavaScript in a documentation site's origin after user interaction. This issue is fixed in version 9.7.7.
Title Material for MkDocs: DOM XSS in search suggestions via query parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 4:25 PM
Reserved
Aug 11, 2026, 7:42 PM
Status
Deferred
Published
Aug 12, 2026, 5:17 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Moderate
Public date
Aug 12, 2026, 4:15 PM