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.
Published: 2026-08-12
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 13 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 13 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Squidfunk
Squidfunk mkdocs-material
Vendors & Products Squidfunk
Squidfunk mkdocs-material

Wed, 12 Aug 2026 16:30:00 +0000

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'}


Subscriptions

Squidfunk Mkdocs-material
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T16:25:06.938Z

Reserved: 2026-08-11T19:42:11.450Z

Link: CVE-2026-73295

cve-icon Vulnrichment

Updated: 2026-08-13T16:25:02.954Z

cve-icon NVD

Status : Received

Published: 2026-08-12T17:17:32.637

Modified: 2026-08-13T17:17:36.777

Link: CVE-2026-73295

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-12T16:15:22Z

Links: CVE-2026-73295 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T09:48:24Z

Weaknesses
  • CWE-79

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