Skip to content

Fix CVE-2026-29786: Update tar to patch hardlink vulnerability#2323

Closed
JanPokorny wants to merge 1 commit intomainfrom
claude/fix-tar-vulnerability-Iwgvk
Closed

Fix CVE-2026-29786: Update tar to patch hardlink vulnerability#2323
JanPokorny wants to merge 1 commit intomainfrom
claude/fix-tar-vulnerability-Iwgvk

Conversation

@JanPokorny
Copy link
Collaborator

Summary

Updates the tar package override in pnpm-workspace.yaml to version 7.5.10 to address CVE-2026-29786 / GHSA-qffp-2rhf-9h96, a hardlink path traversal vulnerability via drive-relative linkpath. This dependency is transitively included via mintlify → @mintlify/previewing.

Linked Issues

Documentation

  • No Docs Needed: This is a security patch for a transitive dependency with no API or behavior changes affecting users.

https://claude.ai/code/session_01LpHvg7gvwzGesRa3h5PFh6

Add pnpm override to force tar@>=7.5.10 across all transitive
dependencies. The vulnerability (GHSA-qffp-2rhf-9h96) allows
hardlink path traversal via drive-relative linkpaths (e.g. C:../target.txt),
enabling arbitrary file overwrite outside the extraction directory.

tar@6.1.15 was pulled in transitively via mintlify -> @mintlify/previewing.

https://claude.ai/code/session_01LpHvg7gvwzGesRa3h5PFh6
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 6, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the project's security posture by patching a critical hardlink path traversal vulnerability found in the tar package. The change involves updating the tar dependency to a secure version through a pnpm override, which in turn triggered necessary updates across several related transitive dependencies. This ensures that the application is protected from the identified CVE without introducing functional changes.

Highlights

  • Security Vulnerability Fix: Addressed CVE-2026-29786 (GHSA-qffp-2rhf-9h96), a hardlink path traversal vulnerability in the tar package.
  • Dependency Override: Implemented a pnpm override to force the tar package to version 7.5.10, which contains the security patch.
  • Transitive Dependency Update: The tar dependency is transitively included via mintlify -> @mintlify/previewing, and its update necessitated several other dependency updates in the lockfile.
  • Lockfile Updates: Updated pnpm-lock.yaml to reflect the new tar version and its updated sub-dependencies, including chownr, minipass, minizlib, and yallist, and the addition of @isaacs/fs-minipass.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • pnpm-lock.yaml
    • Updated @carbon/react from 1.101.0 to 1.102.0.
    • Added an override for tar@<7.5.10 to enforce version 7.5.10.
    • Added @isaacs/fs-minipass@4.0.1 as a new package entry.
    • Updated chownr from version 2.0.0 to 3.0.0.
    • Removed fs-minipass@2.1.0 package entry.
    • Removed minipass@3.3.6 and minipass@5.0.0 package entries.
    • Updated minizlib from version 2.1.2 to 3.1.0.
    • Removed mkdirp@1.0.4 package entry.
    • Updated tar from version 6.1.15 to 7.5.10, along with its sub-dependencies.
    • Updated yallist from version 4.0.0 to 5.0.0.
    • Adjusted snapshot entries to reflect the updated dependency tree for tar and its sub-dependencies.
  • pnpm-workspace.yaml
    • Added a new override entry for tar@<7.5.10 to enforce version 7.5.10, including comments referencing the CVE and its transitive nature.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly addresses the tar package vulnerability (GHSA-qffp-2rhf-9h96) by adding a pnpm override to enforce version 7.5.10. The changes in the lockfile are consistent with this override. I've added one comment to correct a typo in the CVE number within a code comment for better accuracy and future tracking.

Comment on lines +5 to +7
# Fix CVE-2026-29786 / GHSA-qffp-2rhf-9h96: tar hardlink path traversal via drive-relative linkpath
# Transitive via mintlify -> @mintlify/previewing
"tar@<7.5.10": "7.5.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There appears to be a typo in the CVE number. The year should be 2024, not 2026. Correcting this will improve the accuracy of the security vulnerability tracking within the codebase.

  # Fix CVE-2024-29786 / GHSA-qffp-2rhf-9h96: tar hardlink path traversal via drive-relative linkpath
  # Transitive via mintlify -> @mintlify/previewing
  "tar@<7.5.10": "7.5.10"

@JanPokorny JanPokorny closed this Mar 9, 2026
@JanPokorny JanPokorny deleted the claude/fix-tar-vulnerability-Iwgvk branch March 9, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants