Patch vulnerable transitive dependencies in the VitePress docs stack#184
Merged
Conversation
Copilot created this pull request from a session on behalf of
yanglbme
June 4, 2026 11:48
View session
|
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
|
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
|
你好,我已收到你的邮件。
|
There was a problem hiding this comment.
Pull request overview
This PR addresses dependency security alerts in the VitePress-based docs toolchain by pinning patched versions of vulnerable transitive dependencies via pnpm overrides and updating the lockfile to reflect the remediated resolution graph.
Changes:
- Added
pnpm.overridesinpackage.jsonto force patched versions ofmdast-util-to-hast,picomatch,postcss, androllup. - Refreshed
pnpm-lock.yamlso the resolved dependency graph aligns with the overrides (including updatedrollupplatform artifacts and related transitive bumps).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Adds pnpm.overrides to pin patched transitive dependency versions for the docs toolchain. |
| pnpm-lock.yaml | Updates the lockfile to match the override-enforced dependency graph (including rollup/postcss/picomatch/mdast-util-to-hast resolution updates). |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
408
to
+410
| '@ungap/structured-clone@1.3.0': | ||
| resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} | ||
| deprecated: Potential CWE-502 - Update to 1.3.1 or higher |
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.
The repository was reporting security alerts from transitive packages pulled in by the docs build toolchain. This change narrows the remediation to dependency resolution, updating the affected packages without changing the site configuration or content.
What changed
pnpm.overridesto force patched versions of vulnerable transitive dependencies used byvitepress.Patched dependencies
mdast-util-to-hast→13.2.1picomatch→4.0.4postcss→8.5.15rollup→4.61.1Why this shape
Example
{ "pnpm": { "overrides": { "mdast-util-to-hast": "13.2.1", "picomatch": "4.0.4", "postcss": "8.5.15", "rollup": "4.61.1" } } }