Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify docs site with search.suggest enabled
-
DeliveryCraft URL with XSS payload in q parameter
-
ExploitDeliver link to victim via phishing or social engineering
-
InstallVictim clicks link and browser loads page
-
C2mountSearchSuggest processes unsanitized q parameter
-
ExecuteJavaScript executes in documentation site origin
-
ImpactExfiltrate origin-scoped tokens or perform UI redress
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The optional search.suggest feature must be explicitly configured and enabled in the site's mkdocs.yml - it is not active by default, which substantially narrows the vulnerable population. The victim must actively click a crafted link (UI:R from CVSS PR:N/UI:R); passive drive-by exploitation without user interaction is not possible. Impact is limited to the documentation site's browser origin (S:U), so cross-domain session tokens and cookies for other services are not accessible. The attacker requires no account or credentials on the target site (PR:N from CVSS). Versions prior to 7.2.0 do not include the search.suggest feature and are therefore not affected. |
| Impact | The CVSS 3.1 score of 5.4 (Medium) reflects a network-delivered, low-complexity attack requiring no privileges but necessitating user interaction (UI:R), with unchanged scope and only Low confidentiality and integrity impact. These signals align well with the description: the attack is a URL-based XSS, not a network-layer exploit, and the impact is bounded to the documentation site's browser origin. EPSS data was not provided, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no public POC has been identified, suggesting no widespread active exploitation pressure at time of analysis. The critical limiting factor is that the search.suggest feature is described as optional, meaning a significant fraction of deployments may not be vulnerable even if running an affected version. Documentation sites typically do not handle highly sensitive user data, reducing the real-world confidentiality impact in most deployments. Overall this is a genuine but moderate-priority issue, most actionable for teams operating public-facing documentation sites with search.suggest enabled. |
| Exploit ScenarioDerived | An attacker identifies a public documentation site built with Material for MkDocs 7.2.0-9.7.6 that has search.suggest enabled, then crafts a URL embedding a JavaScript payload in the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
DOM-based cross-site scripting in Material for MkDocs versions 7.2.0 through 9.7.6 allows remote attackers to execute arbitrary JavaScript within a documentation site's origin by crafting a malicious q URL parameter targeting the optional search.suggest feature, which requires a single click from the victim to trigger. The vulnerability is confined to sites that have explicitly enabled the search.suggest feature, and exploitation results in Low confidentiality and integrity impact scoped to the affected origin. No public exploit code or active exploitation (CISA KEV) has been identified; the vendor released a confirmed patch in version 9.7.7.
RemediationAI
Vendor-released patch: version 9.7.7, available at https://github.com/squidfunk/mkdocs-material/releases/tag/9.7.7 and confirmed by fix commit 52fb6be8aafe326419f34dc94d3211e7bbfbfb25. Upgrading to 9.7.7 is the definitive remediation. For sites that cannot upgrade immediately, disable the optional search.suggest feature in mkdocs.yml (remove or set search.suggest to false under the theme configuration block) - this eliminates the vulnerable code path entirely at the cost of losing search suggestion functionality for end users. There are no meaningful network-layer controls for a DOM-based XSS, as the payload is processed client-side after the page is served; Content Security Policy headers with a restrictive script-src directive could limit impact but may break legitimate theme functionality and require careful testing before deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a DOM-based XSS variant. The vulnerable code path lives in src/templates/assets/javascripts/components/search/suggest/index.ts, within the mountSearchSuggest function - a client-side JavaScript component that processes the q URL query parameter and reflects it into the DOM without sufficient sanitization. Because this is DOM-based (not reflected at the server layer), traditional WAF rules targeting server responses are less effective. The affected CPE is cpe:2.3:a:squidfunk:mkdocs-material:*:*:*:*:*:*:*:*, covering the theme/framework layer built on top of the Python-based MkDocs static site generator. The fix commit (52fb6be8aafe326419f34dc94d3211e7bbfbfb25) patches the minified JavaScript bundle shipped with the theme.
Know when Mkdocs Material gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Network-delivered URL-based XSS, no privileges or complexity required, user click mandatory, impact confined to documentation site origin with no availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-57321
GHSA-xvg9-69gf-fjrf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB