Skip to main content

MkDocs Material CVE-2026-73295

| EUVDEUVD-2026-57321 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-12 GitHub_M GHSA-xvg9-69gf-fjrf
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify docs site with search.suggest enabled
  2. Delivery
    Craft URL with XSS payload in q parameter
  3. Exploit
    Deliver link to victim via phishing or social engineering
  4. Install
    Victim clicks link and browser loads page
  5. C2
    mountSearchSuggest processes unsanitized q parameter
  6. Execute
    JavaScript executes in documentation site origin
  7. Impact
    Exfiltrate 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 q query parameter. The attacker distributes this link via phishing email, issue tracker comment, or social media targeting the site's users; when a victim clicks the link, their browser processes the parameter through mountSearchSuggest, executing the payload in the documentation site's origin and potentially exfiltrating any cookies or tokens scoped to that domain. No public POC has been identified, but the attack surface is well-understood and the technique is standard for DOM-based XSS.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mkdocs-material 7.2.0, < 9.7.7

Affected Packages

pypi mkdocs-material fix: 9.7.7

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

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Network-delivered URL-based XSS, no privileges or complexity required, user click mandatory, impact confined to documentation site origin with no availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Aug 12, 2026 - 17:17 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular documentation theme widely used across open-source projects
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy