Bump pymdown-extensions to 11 to clear Dependabot #18 - #265
Merged
Conversation
Dependabot 18: pymdown-extensions <= 10.21.3 has a path traversal in the b64 extension (an <img src> can read files outside base_path), fixed in 11.0.0. The <11 constraint pinned the vulnerable version; raise it to >=11,<12 and re-lock (10.21.3 -> 11.0.1). Dev/docs-only dependency, and the b64 extension is not in our markdown_extensions, so the risk was low; the bump clears the alert. mkdocs build --strict passes on 11.0.1.
There was a problem hiding this comment.
Pull request overview
This PR updates the docs/dev dependency pymdown-extensions to the 11.x line to address Dependabot alert #18 (path traversal vulnerability in the b64 extension fixed in 11.0.0+), aligning the project’s docs toolchain with the patched release.
Changes:
- Bumped the
docsdependency constraint frompymdown-extensions>=10.0,<11to>=11.0,<12inpyproject.toml. - Re-locked dependencies in
uv.lock, updatingpymdown-extensionsfrom10.21.3to11.0.1and updating the corresponding docs group specifier.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Updates the docs dependency constraint to pymdown-extensions>=11.0,<12. |
| uv.lock | Reflects the re-lock with pymdown-extensions==11.0.1 and the updated docs group constraint. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clears Dependabot alert #18: pymdown-extensions
<= 10.21.3has a path traversal in the b64 extension (a crafted<img src>can read files outsidebase_path), fixed in 11.0.0. Our<11constraint pinned the vulnerable 10.21.3.Change
pyproject.toml:pymdown-extensions>=10.0,<11to>=11.0,<12.uv.lock: re-locked, 10.21.3 to 11.0.1. Single-package bump, no cascade (mkdocs-material>=10.2and mkdocstrings>=6.3carry no upper cap).Notes / risk
Dev/docs-only dependency, and the vulnerable
b64extension is not in ourmarkdown_extensionsconfig, so the exposure was low regardless. Verifiedmkdocs build --strictpasses on 11.0.1 (major bump; the docs use only stable corepymdownxextensions: details, emoji, superfences, highlight, inlinehilite, tabbed, tasklist).