Skip to content

Patch vulnerable transitive dependencies in the VitePress docs stack#184

Merged
yanglbme merged 2 commits into
mainfrom
copilot/fix-security-issues
Jun 4, 2026
Merged

Patch vulnerable transitive dependencies in the VitePress docs stack#184
yanglbme merged 2 commits into
mainfrom
copilot/fix-security-issues

Conversation

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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

    • Added pnpm.overrides to force patched versions of vulnerable transitive dependencies used by vitepress.
    • Refreshed the lockfile so the resolved dependency graph matches the secure versions.
  • Patched dependencies

    • mdast-util-to-hast13.2.1
    • picomatch4.0.4
    • postcss8.5.15
    • rollup4.61.1
  • Why this shape

    • Keeps the change scoped to supply-chain remediation.
    • Avoids broader framework/plugin upgrades while clearing the current alerts.
  • Example

    {
      "pnpm": {
        "overrides": {
          "mdast-util-to-hast": "13.2.1",
          "picomatch": "4.0.4",
          "postcss": "8.5.15",
          "rollup": "4.61.1"
        }
      }
    }

@yanglbme yanglbme marked this pull request as ready for review June 4, 2026 11:49
Copilot AI review requested due to automatic review settings June 4, 2026 11:49
@yanglbme yanglbme merged commit 7fcff93 into main Jun 4, 2026
@yanglbme yanglbme deleted the copilot/fix-security-issues branch June 4, 2026 11:49
@fyyzkd

fyyzkd commented Jun 4, 2026 via email

Copy link
Copy Markdown

@qm13579

qm13579 commented Jun 4, 2026 via email

Copy link
Copy Markdown

@Litexplorer

Litexplorer commented Jun 4, 2026 via email

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.overrides in package.json to force patched versions of mdast-util-to-hast, picomatch, postcss, and rollup.
  • Refreshed pnpm-lock.yaml so the resolved dependency graph aligns with the overrides (including updated rollup platform 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 thread pnpm-lock.yaml
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants