Skip to content

Fix immutable Prototype Pollution vulnerability (CVE-2026-29063)#2314

Merged
JanPokorny merged 2 commits intomainfrom
claude/fix-prototype-pollution-fWX3v
Mar 9, 2026
Merged

Fix immutable Prototype Pollution vulnerability (CVE-2026-29063)#2314
JanPokorny merged 2 commits intomainfrom
claude/fix-prototype-pollution-fWX3v

Conversation

@JanPokorny
Copy link
Collaborator

Summary

Adds an override in pnpm-workspace.yaml to fix CVE-2026-29063 / GHSA-wf6x-7x77-mvgw, a Prototype Pollution vulnerability in the immutable package. The override ensures that immutable is pinned to version 5.1.5 or higher when versions 5.0.0 through 5.1.4 would otherwise be resolved.

This vulnerability is transitive via sass and sass-embedded dependencies.

Linked Issues

Documentation

  • No Docs Needed: This is a security vulnerability fix in dependency management configuration.

https://claude.ai/code/session_01Eh1WktrxtXkU11zWJtDisj

…6-29063)

Add pnpm override to force immutable >= 5.1.5, fixing the Prototype
Pollution vulnerability (GHSA-wf6x-7x77-mvgw) in the transitive
dependency chain through sass and sass-embedded.

https://claude.ai/code/session_01Eh1WktrxtXkU11zWJtDisj
@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 addresses a critical security vulnerability (CVE-2026-29063) related to Prototype Pollution within the immutable package. The fix involves configuring pnpm to enforce a specific, secure version of immutable across the project's dependencies, thereby mitigating the risk posed by this transitive vulnerability.

Highlights

  • Vulnerability Fix: Addressed CVE-2026-29063, a Prototype Pollution vulnerability found in the immutable package.
  • Dependency Override: Implemented a pnpm override in pnpm-workspace.yaml to ensure that immutable is pinned to version 5.1.5 when versions 5.0.0 through 5.1.4 would otherwise be resolved.
  • Transitive Dependency: The vulnerability is noted to be transitive, affecting the project via sass and sass-embedded dependencies.

🧠 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 to version 1.102.0.
    • Added an override rule for immutable versions between 5.0.0 and 5.1.5 to resolve to 5.1.5.
    • Updated the resolved version of immutable from 5.1.4 to 5.1.5, including its integrity hash.
    • Updated immutable dependency version for sass-embedded to 5.1.5.
    • Updated immutable dependency version for sass to 5.1.5.
  • pnpm-workspace.yaml
    • Added a new override rule to enforce immutable version 5.1.5 for vulnerable ranges, along with comments explaining the CVE and its transitive nature.
Activity
  • No specific activity (comments, reviews, etc.) has been recorded for 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 Prototype Pollution vulnerability (GHSA-wf6x-7x77-mvgw) in the immutable package by adding an override in pnpm-workspace.yaml to enforce version 5.1.5. The changes in pnpm-lock.yaml are consistent with this override. I have one suggestion to improve the accuracy of the comment associated with this security fix.

# Fix CVE-2024-45296 / GHSA-9wv6-86v2-598j: path-to-regexp ReDoS vulnerability
# Transitive via mintlify -> @mintlify/previewing -> express@4.18.2
"path-to-regexp@<0.1.10": "0.1.10"
# Fix CVE-2026-29063 / GHSA-wf6x-7x77-mvgw: immutable Prototype Pollution vulnerability
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The CVE identifier CVE-2026-29063 appears to be incorrect. The year 2026 is in the future, and the associated GitHub Security Advisory GHSA-wf6x-7x77-mvgw does not have a CVE assigned to it. To avoid confusion and maintain accurate documentation, it's best to remove the incorrect CVE reference from the comment.

  # Fix GHSA-wf6x-7x77-mvgw: immutable Prototype Pollution vulnerability

Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>
@JanPokorny JanPokorny merged commit 814f50c into main Mar 9, 2026
5 of 6 checks passed
@JanPokorny JanPokorny deleted the claude/fix-prototype-pollution-fWX3v branch March 9, 2026 06:37
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