Skip to content

Fix tar CVE-2026-23745 arbitrary file overwrite vulnerability#2324

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

Fix tar CVE-2026-23745 arbitrary file overwrite vulnerability#2324
JanPokorny wants to merge 1 commit intomainfrom
claude/fix-tar-vulnerability-aO638

Conversation

@JanPokorny
Copy link
Collaborator

Summary

Updates the tar package override in pnpm-workspace.yaml to version 7.5.3 to address CVE-2026-23745 / GHSA-8qq5-rm4j-mr97, which fixes arbitrary file overwrite and symlink poisoning vulnerabilities. This dependency is pulled in transitively through the documentation build chain (docs → mintlify → @mintlify/previewing).

Linked Issues

Documentation

  • No Docs Needed: This is a security patch for a transitive dependency with no user-facing changes.

https://claude.ai/code/session_01GQL2giWGa8LYqKmZGvAsBk

Adds a pnpm override to force tar to >=7.5.3, patching the arbitrary
file overwrite and symlink poisoning vulnerability (GHSA-8qq5-rm4j-mr97)
introduced via the docs -> mintlify -> @mintlify/previewing transitive
dependency chain.

https://claude.ai/code/session_01GQL2giWGa8LYqKmZGvAsBk
@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 implements a critical security update by patching the tar package to version 7.5.3. This update specifically mitigates CVE-2026-23745, which exposed the system to arbitrary file overwrite and symlink poisoning vulnerabilities. The tar package is a transitive dependency, primarily affecting the documentation build chain, ensuring the integrity and security of our build processes.

Highlights

  • Security Vulnerability Fix: Addressed CVE-2026-23745, an arbitrary file overwrite and symlink poisoning vulnerability in the tar package.
  • Dependency Update: Updated the tar package to version 7.5.3 via an override in pnpm-workspace.yaml and pnpm-lock.yaml.
  • Transitive Dependency: The vulnerable tar package is a transitive dependency within the documentation build chain (docs → mintlify → @mintlify/previewing).

🧠 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 the @carbon/react package to version 1.102.0.
    • Introduced an override for tar@<=7.5.2 to enforce version 7.5.3.
    • Updated chownr from 2.0.0 to 3.0.0.
    • Updated minizlib from 2.1.2 to 3.1.0.
    • Updated yallist from 4.0.0 to 5.0.0.
    • Added @isaacs/fs-minipass@4.0.1 as a new package entry.
    • Removed older fs-minipass@2.1.0, minipass@3.3.6, minipass@5.0.0, and mkdirp@1.0.4 package entries.
    • Adjusted the dependencies for the tar package to reflect the new versions of its sub-dependencies.
  • pnpm-workspace.yaml
    • Added a new override entry for tar@<=7.5.2 to force its resolution to 7.5.3, including comments detailing the CVE fix.
Activity
  • The pull request description explicitly states "No Docs Needed" as it's a security patch for a transitive dependency with no user-facing changes.
  • A link to a Claude.ai session is provided, suggesting an AI-assisted analysis or verification process was used.
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-8qq5-rm4j-mr97) by overriding the transitive dependency to a patched version. My review includes a couple of suggestions for improvement: one to correct a typo in the CVE number in a comment, and another to remove an unrelated dependency update from this security-focused PR to maintain its focus and clarity.

'@carbon/react':
specifier: ^1.101.0
version: 1.101.0
version: 1.102.0
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This PR's goal is to fix a security vulnerability in the tar package. However, it also includes an update to @carbon/react. While this might be a valid update, it's best practice to keep security-focused PRs as minimal as possible to ease review and auditing. Please consider reverting this change and creating a separate PR for it.

@JanPokorny JanPokorny closed this Mar 9, 2026
@JanPokorny JanPokorny deleted the claude/fix-tar-vulnerability-aO638 branch March 9, 2026 07:26
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