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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| squidfunk | mkdocs-material | >= 7.2.0, < 9.7.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mkdocs-material | No fix yet | — |
| Debian 13 | mkdocs-material | No fix yet | — |
| Debian 12 | mkdocs-material | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mkdocs-material | No fix yet | — |
| Ubuntu 26.04 LTS | mkdocs-material | No fix yet | — |
| Ubuntu 24.04 LTS | mkdocs-material | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mkdocs-material | >= 7.2.0, < 9.7.7 | 9.7.7 | GHSA-xvg9-69gf-fjrf |