Skip to content

Bring in the security fixes of upstream 9.7.7 and 9.8.0 - #12

Merged
shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-8gce4u
Nov 1, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-8gce4u

Conversation

@shenxianpeng

Copy link
Copy Markdown
Member

Ports the security fixes from upstream Material for MkDocs 9.7.7 and 9.8.0 and bumps the version to 9.8.0. We forked at upstream 20dc8e93 (after 9.7.6), so both releases were missing.

Ported

  • XSS in search suggestions (upstream 9.7.7, 52fb6be8): suggestions are set with textContent instead of innerHTML, and the white-space: pre style replaces the   substitution. In the rebuilt bundle, the innerHTML=…replace(/\s/g," ") call is gone.
  • Python dependency minimums (upstream 9.8.0): Jinja2 3.1.6, Markdown 3.8.1, Pygments 2.20.0, PyMdown Extensions 11.0.1, Requests 2.33.0; imaging extra: Pillow 13.0.0, CairoSVG 2.9.1; git extra: GitPython 3.2.1.
  • Node build-time dependencies: esbuild, cssnano, svgo, and upstream's package-lock.json (renamed to mkdocs-ng-material). Assets rebuilt with npm run build:all. main and palette CSS hashes match upstream 9.8.0 exactly; the JS bundle differs only by our own changes.
  • Typo fix in the optimize plugin.

Different from upstream

  • Python 3.10+, not 3.11+: matches mkdocs-ng. Only Pillow 13 needs 3.11, so the imaging extra does too.
  • mkdocs-redirects stays in recommended: it works with mkdocs-ng, which also turns off its ProperDocs notice.
  • mkdocs-rss-plugin is removed from recommended: every release pins gitpython<3.2, so [recommended,git] can't be installed with the GitPython fix.
  • Not ported: the end-of-life CLI notice, Zensical migration links, "Inactive" classifier, and upstream's docs changes.
  • Icon search now loads icons from mkdocs-ng/mkdocs-material (the build script already pointed there, the committed index was stale).

Testing

Changelog entries in CHANGELOG and docs/changelog/index.md (dated 2026-11-01; adjust when released).


Generated by Claude Code

- Fix the DOM-based XSS in search suggestions (upstream 9.7.7)
- Raise minimum versions of Python dependencies with known vulnerabilities
- Raise minimums in the imaging extra and add GitPython 3.2.1 to the git extra
- Update Node build-time dependencies and rebuild the assets
- Require Python 3.10, matching mkdocs-ng
- Drop mkdocs-rss-plugin from the recommended extra: it pins GitPython < 3.2

Leaves out upstream's end-of-life notice, Zensical migration links and
'Inactive' status.
@shenxianpeng shenxianpeng self-assigned this Nov 1, 2026
@github-actions github-actions Bot added the bug Something isn't working label Nov 1, 2026
@shenxianpeng
shenxianpeng merged commit 63bf8f2 into main Nov 1, 2026
5 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-8gce4u branch November 1, 2026 10:05

This branch was previously deployed

1 inactive deployment
pypi — 3d73b4fc Deployed Nov 1, 2026 by shenxianpeng via python #26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant